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 » [solved] Is it an encoding problem ? (FileIn strange behavior)
[solved] Is it an encoding problem ? [message #51327] Wed, 06 March 2019 14:33 Go to next message
Xemuth is currently offline  Xemuth
Messages: 387
Registered: August 2018
Location: France
Senior Member
Hello community,

I'm actually serialing into XML some french (with accent Twisted Evil ) word.
The result looks like this :
https://i.imgur.com/7iBWmJP.png

Problem is starting when I deserialize the Xml by reading my file using FileIn object
then passing the string of my file to my deserialize function.

Indeed, while I'm looking the value of my String I got something like that :https://i.imgur.com/8UsoDt4.png

Can someone explain me why ? Everything is supposed to be UTF-8...

Thanks in advance

Have a good day

[Updated on: Fri, 08 March 2019 08:49]

Report message to a moderator

Re: Is it an encoding problem ? [message #51331 is a reply to message #51327] Fri, 08 March 2019 08:49 Go to previous message
Xemuth is currently offline  Xemuth
Messages: 387
Registered: August 2018
Location: France
Senior Member
Problem solved,

it came from the encodage...
just had to do this :
theWord = ToCharset(CHARSET_DEFAULT,theWord,CHARSET_CP850);


Previous Topic: OLE Automation
Next Topic: Submenu Clickable
Goto Forum:
  


Current Time: Fri Apr 19 15:30:19 CEST 2024

Total time taken to generate the page: 0.82752 seconds