Re: Using uft8 encoded strings in windows filesystem



latengoyo.groups@xxxxxxxxx wrote:
I've got a project which is completely enconded in UTF-8. The database
and the served pages are in this encoding. But when using filesystem
functions like mkdir() fopen(), etc. -UNDER WINDOWS- it produces wrong
file and directory names.

If I mkdir('日本語') the directory 日本語 is created in the
filesystem.

This does not seem a filesystem limitation as if I create manually
from the windows explorer a directory with the same name, the
directory is created correctly.

How can i write my utf filenames as they are?
How about using iconv to first convert the string to UCS-2?
I think Windows uses UCS-2 rather than UTF-8.



--
Ron Fox
NSCL
Michigan State University
East Lansing, MI 48824-1321
.



Relevant Pages

  • Re: Create shortcuts to filesystem Files
    ... Steve ... I found that I can add them to the links web part by typing in the ... >> the filesystem before I archive the project. ...
    (microsoft.public.sharepoint.portalserver)
  • Using uft8 encoded strings in windows filesystem
    ... The database ... and the served pages are in this encoding. ... But when using filesystem ... functions like mkdir() fopen, etc. -UNDER WINDOWS- it produces wrong ...
    (comp.lang.php)
  • Re: A Great Idea (tm) about reimplementing NLS.
    ... would translate filenames form utf-8 stored on the media to e.g. latin2 ... one encoding for a particular language ... The filesystem is already populated with UFT-8 names. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: A Great Idea (tm) about reimplementing NLS.
    ... >> filesystems are tagged as using some specific encoding. ... ISO 8-bit encodings are more common with characters they can ... > more greaceful since you could have utf-8 filesystem and then you ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: A Great Idea (tm) about reimplementing NLS.
    ... Alexey Zaytsev writes: ... no one forces me to use the same encoding on the ... >> IOW given a FAT filesystem on an USB stick, ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)