Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » LoadFile problem with accented chars
LoadFile problem with accented chars [message #19983] Sat, 07 February 2009 22:27 Go to previous message
koldo is currently offline  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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Core package build flags
Next Topic: Hi! Performance question
Goto Forum:
  


Current Time: Thu May 16 07:25:13 CEST 2024

Total time taken to generate the page: 0.01755 seconds