Re: Using uft8 encoded strings in windows filesystem



On 31 dic, 12:35, Ron Fox <f...@xxxxxxxxxxxx> wrote:

How about using iconv to first convert  the string to UCS-2?
I think Windows uses UCS-2 rather than UTF-8.

The php application must work on both unix and windows systems, so do
you recommend doing something like:

if (DIRECTORY_SEPARATOR=="\\") {
mkdir(iconv("UTF-8","UCS-2",$mydir));
} else {
mkdir($mydir);
}

And another question, are all windows systems UCS-2 or it depends on
the instalation language?
.



Relevant Pages

  • Re: Using uft8 encoded strings in windows filesystem
    ... I think Windows uses UCS-2 rather than UTF-8. ... The php application must work on both unix and windows systems, ... support UCS-2. ... What I don't know is whether PHP on Windows is smart enough to call the ...
    (comp.lang.php)
  • Re: Read a line under MS/Unix/Mac
    ... Don't forget that Macs use '\r', Unix uses '\n' and Windows systems ... I guess that the source of an FTP program is probably a lot better, ... because it may handle Unix, Windows, OpenVMS, IBM Mainfram, and Mac, ...
    (comp.lang.c)
  • Re: Need a list of files in a dir.
    ... Ryan> Windows systems as much as he was stating that given a number of UNIX ... more UNIX systems have Perl ...
    (perl.beginners)
  • Re: Pops Device, was Re: Some Newb Problem with "int", please help.
    ... because all decent DOS/Windows implementations ... correctly on Windows systems, ... compile pete's code on a Unix or Linux implementation and then try to ... think the reverse is generally true: I think most Windows compilers ...
    (comp.lang.c)
  • Re: YADQ (Yet another dumb question)
    ... Cygwin lets users run Unix apps on top of Windows? ... it also lets users run applications originally written for UNIX on ... their Windows systems. ...
    (comp.os.cpm)