Re: Handling international characters in filenames on Win32

From: Mihai N. (nmihai_year_2000_at_yahoo.com)
Date: 04/16/04


Date: Fri, 16 Apr 2004 09:35:17 GMT


Some notes, additions and corrections:
> Sounds like one of those codeset conversion problems. DOS uses cp850 and
> windows uses cp1252
DOS and the Windows actual console (which "symulates" the DOS prompt)
The DOS/console code page is also called OEM code page.
The Windows code page is also called (not 100% correct) ANSI code page.
Also, 850 was the OEM used for most Western European languages.
For English U.S. systems the OEM cp is 437.

> which is the same for 'normal' characters but
> differs wrt wide characters.
Not wide characters, just "high ascii" or "accented characters"

> It's a fairly simple task using Text::Iconv
> to convert from one to the other - which would be one way to get around
> the problem. It's probably just as simple to convert from one to the
> other using the Encode module which is part of the perl core with perl
> 5.8 (though I've not used it).
Main problem here: there are characters in 1252 that are not present
in 850/437.

-- 
Mihai
-------------------------
Replace _year_ with _ to get the real email


Relevant Pages

  • Re: Beware wildcards in Kill
    ... > It is a long-standing issue that wildcards in a DOS ... > characters, and '?' ... You're overlooking the fact that every file in the Windows ... file system has two names: ...
    (microsoft.public.vb.syntax)
  • A Thank You, And A Couple Of Odd Questions
    ... run in a DOS window under Windows just fine. ... sort of trick that enabled me to insert characters from the ... that I did it inside the quotes of a PRINT command. ...
    (comp.programming)
  • Re: increase folder tiltle length
    ... Ms Windows is very specific and very proproitary so even getting into their programing takes a master hacker. ... DOS was only meant to show a certian amount of characters and the desktop is looking to DOS for it's commands on this subject. ... special folder, and is intended for the placement of shortcuts to frequently used programs or folders NOT the folders themselves, My Documents was provided for that purpose. ...
    (microsoft.public.office.misc)
  • Re: display non-ascii characters in DOS window
    ... I'd like to display some non-ascii characters in a DOS window. ... > getting the characters from Windows Character Map, ...
    (comp.lang.cpp)
  • ~~~~~~~~~~~~~~ FILE NAME ~~~~~~~~~~~~~~
    ... adapter description file file name extension ... apple script to change file names ... batching file name changes in windows ... change short file names in dos ...
    (sci.misc)