Thank you all. Now I believe I will be able to solve this.
Dňa 28. 2. 2013 5:25 Era Scarecrow  wrote / napísal(a):
On Wednesday, 27 February 2013 at 10:56:16 UTC, Lubos Pintes wrote:
Hi,
I would like to transparently convert from ANSI to UTF-8 when dealing
with text files. For example here in Slovakia, virtually every text
file is in Windows-1250. If someone opens a text file, he or she
expects that it will work properly. So I suppose, that it is not
feasible to tell someone "if you want to use my program, please
convert every text to UTF-8".

  A while back I wrote a little code that effectively does that, mind
you it's probably not the right specific encoding, however you should be
able to find the code points and replace them. I think this was for
iso-8859-1.

See "Reading ASCII file with some codes above 127 (exten ascii)"

http://forum.dlang.org/thread/[email protected]

Reply via email to