|
Prev: Change/edit Control Tab Order without restarting from beginning?
Next: How can I fool an ActiveX control?
From: David Webber on 20 May 2008 03:37 Slightly OT question - except that I'm saving a file from an MFC program :-) Under XP and Vista, am I allowed any Unicode character in a file name except the usual few punctuation characters? I haven't thought about this before, but I have saved one containing a "w with a ^ on it", and it seems ok. Are there any dangers? [ The letter w or W with the "to bach" (little roof) occurs in Welsh, but the letter exists in no known code page, and so you really need Unicode to get it. I am keen to illustrate the possibilities in the next edition of my MDI app, and am providing samples with titles like "Dacw Mam Yn Dwad" (heaven knows whether the 2nd letter of the last word will appear to everyone here <g>) and a file name "DacwMamYnDwad.mz" seemed like a good idea!] I'm also going to do "Sonata in Eb" with a proper flat sign, but that exists as yet in so few Unicode fonts, that I guess it would be unwise to rely on it being in the Windows font used by any particular person. :-( Dave -- David Webber Author of 'Mozart the Music Processor' http://www.mozart.co.uk For discussion/support see http://www.mozart.co.uk/mozartists/mailinglist.htm
From: Giovanni Dicanio on 20 May 2008 05:43 Hi David, "David Webber" <dave(a)musical-dot-demon-dot-co.uk> ha scritto nel messaggio news:O5s1rsluIHA.1240(a)TK2MSFTNGP02.phx.gbl... > Slightly OT question - except that I'm saving a file from an MFC program > :-) :-) > Under XP and Vista, am I allowed any Unicode character in a file name > except the usual few punctuation characters? I think that you really can do that! I have Italian non-ASCII characters in my filenames, like �, �, etc. and I never had problems since using Windows XP (maybe I had some problems on Win9x...). I believe that if your program is built in Unicode mode, you will have no problem if the file names contain Unicode characters. Giovanni
From: David Webber on 20 May 2008 06:48 "Giovanni Dicanio" <giovanni.dicanio(a)invalid.com> wrote in message news:Oic8Z4luIHA.672(a)TK2MSFTNGP02.phx.gbl... >> Under XP and Vista, am I allowed any Unicode character in a file name >> except the usual few punctuation characters? > > I think that you really can do that! > > I have Italian non-ASCII characters in my filenames, like �, �, etc. and I > never had problems since using Windows XP (maybe I had some problems on > Win9x...). > > I believe that if your program is built in Unicode mode, you will have no > problem if the file names contain Unicode characters. Thanks. It does indeed appear to work. However I have been stopped in my tracks, just before I read your reply. The installer software I'm using (SetupBuilder - which is otherwise absolutely excellent) was very unhappy about the idea of compressing a file with a w^ in the name :-( I'll mention it to the author. Dave -- David Webber Author of 'Mozart the Music Processor' http://www.mozart.co.uk For discussion/support see http://www.mozart.co.uk/mozartists/mailinglist.htm
From: Serge Wautier on 20 May 2008 07:32 David, Unicode-only characters in filenames? It's of course perfectly legal but it's giving a stick to be beaten unfortunately. Even though your app will most likely be very happy about it, you may encounter problems with 3rd party tools. Yikes, you just did! Another example that comes to mind is Winzip: It can compress files with Unicode filenames. No wait, the very latest version can do it. But do your users have it? I don't. I'm currently working on a project where I used an accented character (�) in the filename. Works fine until I use some code generation tool who messes up with codepages when used from the command line. And I'm not speaking here of a unicode-only character. My 2-cents, Serge. http://www.apptranslator.com - Localization tool for your MFC applications "David Webber" <dave(a)musical-dot-demon-dot-co.uk> wrote in message news:%230X9QlmuIHA.3968(a)TK2MSFTNGP04.phx.gbl... > > "Giovanni Dicanio" <giovanni.dicanio(a)invalid.com> wrote in message > news:Oic8Z4luIHA.672(a)TK2MSFTNGP02.phx.gbl... > >>> Under XP and Vista, am I allowed any Unicode character in a file name >>> except the usual few punctuation characters? >> >> I think that you really can do that! >> >> I have Italian non-ASCII characters in my filenames, like �, �, etc. and >> I never had problems since using Windows XP (maybe I had some problems on >> Win9x...). >> >> I believe that if your program is built in Unicode mode, you will have no >> problem if the file names contain Unicode characters. > > Thanks. It does indeed appear to work. However I have been stopped in my > tracks, just before I read your reply. The installer software I'm using > (SetupBuilder - which is otherwise absolutely excellent) was very unhappy > about the idea of compressing a file with a w^ in the name :-( I'll > mention it to the author. > > Dave > > -- > David Webber > Author of 'Mozart the Music Processor' > http://www.mozart.co.uk > For discussion/support see > http://www.mozart.co.uk/mozartists/mailinglist.htm
From: David Webber on 20 May 2008 08:46 "Serge Wautier" <serge(a)wautier.nospam.net> wrote in message news:O$8Zq0muIHA.4772(a)TK2MSFTNGP03.phx.gbl... > Unicode-only characters in filenames? It's of course perfectly legal but > it's giving a stick to be beaten unfortunately. That's why I asked :-) > Even though your app will most likely be very happy about it, you may > encounter problems with 3rd party tools. Yikes, you just did! Another > example that comes to mind is Winzip: It can compress files with Unicode > filenames. No wait, the very latest version can do it. But do your users > have it? I don't. No I don't. I still write batch files to udse the old PKZIP which I bought donkey's years ago, (it's probably 16 bit, so that's a good point) or use Windows's native zipping. > I'm currently working on a project where I used an accented character (�) > in the filename. Works fine until I use some code generation tool who > messes up with codepages when used from the command line. And I'm not > speaking here of a unicode-only character. > > My 2-cents, Thanks. I am coming back to my original position - discretion is the better part of valour :-) Dave -- David Webber Author of 'Mozart the Music Processor' http://www.mozart.co.uk For discussion/support see http://www.mozart.co.uk/mozartists/mailinglist.htm
|
Next
|
Last
Pages: 1 2 Prev: Change/edit Control Tab Order without restarting from beginning? Next: How can I fool an ActiveX control? |