[PD] Gem string encoding in [text2d]

Jack jack at rybn.org
Thu Aug 18 18:32:10 CEST 2016


Hello,

In fact, 'string ..." are numbers of unicode code, not utf8 (see text3d
help file)
So you need to convert utf8 to unicode.
You are lucky, because there is an abstraction from IOhannes m zmölnig &
Maira Sala that do the job for you, it is attached.
++

Jack


Le 18/08/2016 à 16:50, Roman Haefeli a écrit :
> Hey all
> 
> I'm using the 'string' method of [text2d] to display text. It appears
> that [text2d] uses latin1 to render the string, but the string actually
> contains utf-8 encoded text. 
> 
> This is what I see in the Gem window:
> 
> «It’s not my e-mails
> 
> This is what I get from the same string passed to [list
> tosymbol]/[symbolbox\
> 
> 
> «It’s not my e-mails
> 
> Having quick glance at the source code of Gem, I get the impression
> that Gem is prepared to support UTF-8. How can I make it use UTF-8?
> 
> Thanks,
> Roman
> 
> 
> 
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: utf82codenumber.pd
Type: application/puredata
Size: 6402 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20160818/e6be96ef/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: utf82codenumber-help.pd
Type: application/puredata
Size: 3065 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20160818/e6be96ef/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20160818/e6be96ef/attachment-0001.sig>


More information about the Pd-list mailing list