Home » U++ Library support » U++ Core » LoadFile problem with accented chars
LoadFile problem with accented chars [message #19983] |
Sat, 07 February 2009 22:27 |
|
koldo
Messages: 3361 Registered: August 2008
|
Senior Veteran |
|
|
Hello all
In a program I am reading text files written with Notepad.
To do that I simply use String LoadFile(String fileName) and I parse through the readed String.
When the file readed has only simple characters everything goes right, but when I enter in Notepad accented characters like á, é, ... it is like the file would be corrupted. For example in that case a simple char \r is converted into a -17 int.
I have seen that TheIde handles this ok. It seems that (it is just a guess) TheIde detects the file charset and handles the file properly converting it to an Utf8 String.
I have tried to get parts of TheIde code into my program but without success. Do you know what to do?.
Best regards
Koldo
Best regards
Iñaki
|
|
|
|
|
LoadFile problem with accented chars
By: koldo on Sat, 07 February 2009 22:27
|
|
|
Re: LoadFile problem with accented chars
By: mirek on Sun, 08 February 2009 08:06
|
|
|
Re: LoadFile problem with accented chars
By: koldo on Sun, 08 February 2009 22:11
|
|
|
Re: LoadFile problem with accented chars
By: mirek on Mon, 09 February 2009 08:12
|
|
|
Re: LoadFile problem with accented chars
By: koldo on Mon, 09 February 2009 08:47
|
|
|
Re: LoadFile problem with accented chars
By: mirek on Mon, 09 February 2009 17:28
|
|
|
Re: LoadFile problem with accented chars
By: koldo on Tue, 10 February 2009 09:23
|
|
|
Re: LoadFile problem with accented chars
By: koldo on Wed, 11 February 2009 15:05
|
|
|
Re: LoadFile problem with accented chars
|
|
|
Re: LoadFile problem with accented chars
By: koldo on Wed, 11 February 2009 19:26
|
|
|
Re: LoadFile problem with accented chars
By: koldo on Thu, 12 February 2009 01:13
|
|
|
Re: LoadFile problem with accented chars
By: mirek on Thu, 12 February 2009 18:02
|
|
|
Re: LoadFile problem with accented chars
By: koldo on Fri, 13 February 2009 09:50
|
|
|
Re: LoadFile problem with accented chars
By: mirek on Fri, 13 February 2009 11:05
|
|
|
Re: LoadFile problem with accented chars
By: koldo on Fri, 13 February 2009 19:09
|
|
|
Re: LoadFile problem with accented chars
By: mirek on Sun, 15 February 2009 00:05
|
Goto Forum:
Current Time: Thu May 16 07:25:13 CEST 2024
Total time taken to generate the page: 0.01755 seconds
|