Hi All,
I'm very much aware of the sole use of unicode on Windows Mobile devices and that .NETCF2.0 strings are all unicode based. I've developed an application that reads INI based files. I created this file on my laptop and ignored the fact I saved the file with ANSI encoding. This did not give me a problem reading the file though. It worked just fine. I haven't yet written code to write to the file so I've no idea whether I will get a problem. I've since realised that this file is ANSI based so I saved it a Unicode just in case. Obviously it doubles the size of the file.
I'm going to be using a lot of text based files in this application (some rather large) and wondered if ANSI would be OK to read and write from. Should I play safe and stick to Unicode here I only wondered as I can obviously save on storage space with ANSI encoded text files. Saying this, should I wise up and save the file as UTF-8, any complications with this
Thanks
Richard

Unicode VS ANSI encoded files on Windows Mobile Devices
Eric66
1952:
- You know, this two digit field for a year will be broken in 2000...
- It’s almost 50 years from now, there’s no way this application will be around that long.
- Of course, you right. Let’s save two bytes, it’s important.
UTF-8 is Unicode encoding, so yes, you can and should stick with it. Also see this: http://www.joelonsoftware.com/articles/Unicode.html
Shobha69358
Hi Ilya,
Thanks for your advise on this. Interesting article, looks like I need to take more cosideration for the global populous :)
Oh yeah 1952 - I earned a lot of money in 1999 <bg>
DavidThi808
Hi Ilya,
Thanks for your prompt reply.
I know keeping an application globalization ready is a good practice. I doubt much that the application in question will go global though <g>
I'm in no need for international characters and plain old ASCII codes are acceptable to me. Does this mean I can stick with a UTF-8 encoded text file I'm not that worried I suppose, if I have to I will go Unicode. If its less hassle I'll make the encoding Unicode ;)
Thanks
Bertrand Caillet