Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,008 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
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 | 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