Re: UTF8 file handling API's



Thanks for your answers,

I have started working on this.

I have stuck up in one more problem, like i had created a
binary file holding some string in windows using its API's. Now if i
open the same file in linux and try to read it is misbehaving is it
because of Byte Ordering (i.e Little/Big Endian).


Roger Leigh wrote:

entered_this_world_recently@xxxxxxxxxxx writes:

- Is filename can be in utf8 format? (i.e can i have filename in
non english also), does linux supports this.

Yes. Linux allows filenames in any 8-bit encoding.

- If so, any API's are there for file operations.

All the normal functions allow use of UTF-8 (open, fopen etc.).


You don't need to do anything special for your program to handle
UTF-8. Just run the program in a UTF-8 locale.


Regards,
Roger

--
Roger Leigh
Printing on GNU/Linux? http://gutenprint.sourceforge.net/
Debian GNU/Linux http://www.debian.org/
GPG Public Key: 0x25BFB848. Please sign and encrypt your mail.

--=-=-Content-Type: application/pgp-signature
Content-Transfer-Encoding: base64
X-Google-AttachSize: 189

.



Relevant Pages

  • Re: java 1.4.2_03 under redhat 9.0 - encoding problem
    ... My Red Hat Linux ran under UTF-8. ... application on a windows machine saving files in ANSI. ... application on the linux machine screwed up the characters. ...
    (comp.lang.java.programmer)
  • Re: WTF? Printing unicode strings
    ... I'm using an OS X terminal to ssh to a Linux machine. ... variable to Linux and python will know that your terminal is utf-8. ...
    (comp.lang.python)
  • Re: WTF? Printing unicode strings
    ... I'm using an OS X terminal to ssh to a Linux machine. ... variable to Linux and python will know that your terminal is utf-8. ...
    (comp.lang.python)
  • Re: L macro
    ... Linux didn't need to change in that regard. ... The only advantage UTF-16 ... has over UTF-8 is shorter strings for literals with common far ... :: My understanding is that on Win32 wchar_t is used to store Unicode ...
    (microsoft.public.vc.language)