Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Quad, Ayumi, AndrewAMD), 1,092 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
String Encoding (UTF8) #276917
07/07/09 05:49
07/07/09 05:49
Joined: Feb 2009
Posts: 33
Germany, Hamburg
V
Vorick Offline OP
Newbie
Vorick  Offline OP
Newbie
V

Joined: Feb 2009
Posts: 33
Germany, Hamburg
Hi there,

I'm using a UTF8-encoded SQLite-Database (with GSTSQLite) in my current project. I need this encoding, because my project involves different languages. Now, when I'm pulling varchata data from the database into a string, I get e.g. "ü" instead of the german umlaut "ü". As a web developer I know this problem quite well, but in regards of Lite-C I have no idea how to handle this.

And just for background information: I'm currently displaying my strings in a panel digit with the font definition "Arial#14b".

Is there an equivalent to the php function "utf8_decode()"? How can I solve my problem?

Any hints are appreciated.

Patrick

Last edited by Vorick; 07/07/09 13:45.

A8.10 Commercial
Re: String Encoding (UTF8) [Re: Vorick] #277084
07/07/09 17:15
07/07/09 17:15
Joined: Feb 2009
Posts: 33
Germany, Hamburg
V
Vorick Offline OP
Newbie
Vorick  Offline OP
Newbie
V

Joined: Feb 2009
Posts: 33
Germany, Hamburg
Okay, after some digging I stumbled upon this Thread... Wish I had found it yesterday. ;-)

/close


A8.10 Commercial
Re: String Encoding (UTF8) [Re: Vorick] #277597
07/09/09 19:24
07/09/09 19:24
Joined: Jul 2004
Posts: 1,710
MMike Offline
Serious User
MMike  Offline
Serious User

Joined: Jul 2004
Posts: 1,710
did you solved??

when i read UTF8 notepad texts it gives those wierd things, wish i could convert UTF8 to ANSCI IN RUNTIME. Since im using an http reader, that recieves textsof html, UTF8

Re: String Encoding (UTF8) [Re: MMike] #280883
07/24/09 14:20
07/24/09 14:20
Joined: Feb 2009
Posts: 33
Germany, Hamburg
V
Vorick Offline OP
Newbie
Vorick  Offline OP
Newbie
V

Joined: Feb 2009
Posts: 33
Germany, Hamburg
Sorry for the late reply.

I didn't really solve this problem. I am know generating my database entries from within the engine to avoid the problem.


A8.10 Commercial
Re: String Encoding (UTF8) [Re: Vorick] #281000
07/24/09 21:15
07/24/09 21:15
Joined: Jul 2004
Posts: 1,710
MMike Offline
Serious User
MMike  Offline
Serious User

Joined: Jul 2004
Posts: 1,710
to bad..
because i have a similar problem.
What im doing is downloading a html page, and then read the its UTF encoded.. and the html is not outputing correclty.

Re: String Encoding (UTF8) [Re: MMike] #281056
07/25/09 08:44
07/25/09 08:44
Joined: Feb 2009
Posts: 33
Germany, Hamburg
V
Vorick Offline OP
Newbie
Vorick  Offline OP
Newbie
V

Joined: Feb 2009
Posts: 33
Germany, Hamburg
Maybe you can solve your problem the other way round (although I didn't try it):

If you're generating your html via php, you could try to utf8_decode/utf8_encode your html output to get 3dgs-readable data. This is something I have to try out myself in a couple of weeks, when trying to update Rankings from a webserver, but I'm not quite there yet.


A8.10 Commercial
Re: String Encoding (UTF8) [Re: Vorick] #281367
07/26/09 21:36
07/26/09 21:36
Joined: Jul 2004
Posts: 1,710
MMike Offline
Serious User
MMike  Offline
Serious User

Joined: Jul 2004
Posts: 1,710
hum its not php sometimes..
The thing is that this reads RSS feeds for example, and other locak weather conditions, that will show up. and those sites aren't php. :\
saving as txt or html is not the solution.

i though got a program in c++ that converts a input file into any encoded i want.

So this is the process..
Request HTML -> save HTML to something.txt or .gs then, Call a comand EXECUTE to execute the program converter with parameters like silent( no windows) and the output name.. and the conversion encoding format.. --> then finaly read that last ffile, that is the GS format to read.

If you need that program i can give you, it took me alot to found such on the web for free..


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1