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 » Community » Newbie corner » reading & writing a file
Re: reading & writing a file [message #32679 is a reply to message #32678] Wed, 01 June 2011 15:55 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3372
Registered: August 2008
Senior Veteran
Hello SilverX

I guess your file has a BOM, so you could try with LoadFileBOM() function.

You can be sure if your file begins with sequences like:

Encoding 	Representation (decimal) 
UTF-8 		239 187 191 
UTF-16 (BE) 	254 255 
UTF-16 (LE) 	255 254 
UTF-32 (BE) 	0 0 254 255 
UTF-32 (LE) 	255 254 0 0 
UTF-7 		43 47 118, and one of the following: [ 56 | 57 | 43 | 47 ] 
UTF-1 		247 100 76 
UTF-EBCDIC 	221 115 102 115 
SCSU 		14 254 255 
BOCU-1 		251 238 40 optionally followed by 255 
GB-18030 	132 49 149 51 



Best regards
IƱaki
 
Read Message icon5.gif
Read Message
Read Message
Read Message
Read Message icon13.gif
Read Message
Read Message
Read Message
Read Message icon7.gif
Read Message
Previous Topic: GridCtrl out-of-bound crash with test case
Next Topic: using a file chooser (dir chooser??) to get a dir and not a file
Goto Forum:
  


Current Time: Tue Jun 04 02:11:10 CEST 2024

Total time taken to generate the page: 0.01705 seconds