RE: Filenames with non-Ascii characters

From: Deepak Chand Rathore (
Date: Mon Feb 23 2004 - 23:44:39 EST

  • Next message: Jungshik Shin: "RE: Filenames with non-Ascii characters"

    u can open the filename with non ascii characters with char * or wchar_t
    when u use wchar_t it is independent of locale settings
    when using char * ur system locale must be that particular language ( for eg
    japan in ur case)

    -----Original Message-----
    From: Dipti Srivastava [mailto:dipti.srivastava@Remedy.COM]
    Sent: 2004年2月24日 8:36
    To: 'Kenneth Whistler'
    Subject: RE: Filenames with non-Ascii characters

    What if the filename contains contains Japanese characters e.g. the Japanese
    file separator.

    -----Original Message-----
    From: Kenneth Whistler []
    Sent: Monday, February 23, 2004 6:33 PM
    To: Dipti Srivastava
    Subject: Re: Filenames with non-Ascii characters

    Dipti Srivastava asked:

    > If I set my LC_TYPE to en_US.UTF8 do I need to convert the non-Ascii
    > characters like
    > '\' in the filename for functions like open, etc.

    '\' *is* an ASCII character. 0x5C in ASCII to be exact. It is
    also 0x5C in UTF-8, so no (other) conversion is required.

    UTF-8 is designed so that all ASCII characters (0x00..0x7F) have
    exactly the same values in UTF-8. This is precisely so that
    existing protocols and library functions will continue to work correctly
    with it for all ASCII character values.


    This archive was generated by hypermail 2.1.5 : Tue Feb 24 2004 - 00:42:59 EST