Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 989 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
str_printf does not support unicode #441816
06/03/14 18:19
06/03/14 18:19
Joined: Nov 2012
Posts: 62
Istanbul
T
Talemon Offline OP
Junior Member
Talemon  Offline OP
Junior Member
T

Joined: Nov 2012
Posts: 62
Istanbul
Hello,
I'm sorry to find out that str_printf() does not support unicode strings and destroys them badly.

Re: str_printf does not support unicode [Re: Talemon] #441832
06/04/14 10:17
06/04/14 10:17
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
str_printf is not for unicode. But you can just add the result to an unicode string with str_cat. The manual says that str_cat requires strings of the same type, but I believe it can add ASCII to Unicode - just try it.

Re: str_printf does not support unicode [Re: jcl] #441836
06/04/14 11:42
06/04/14 11:42
Joined: Nov 2012
Posts: 62
Istanbul
T
Talemon Offline OP
Junior Member
Talemon  Offline OP
Junior Member
T

Joined: Nov 2012
Posts: 62
Istanbul
Originally Posted By: jcl
str_printf is not for unicode. But you can just add the result to an unicode string with str_cat. The manual says that str_cat requires strings of the same type, but I believe it can add ASCII to Unicode - just try it.


Oh, I see. My problem is when dealing with numbers that you can't store in vars, i.e. large numbers. Currently, you can't directly print out to a unicode string. I did end up with the same solution as you suggested but this way, you need to create another string.

Thanks for the response!


Moderated by  jcl, Nems, Spirit, Tobias 

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