[PD] SQL->Python->puredata (text encode?)

marius schebella marius.schebella at gmail.com
Fri May 9 20:07:14 CEST 2008


I had that problem long time ago. I think it affects characters that are 
utf16(?). first python had problems, but then passing the characters 
from python to pd gave me more problems...  I could not solve it.
marius.

Jack wrote:
> Maybe with Python you have something like 'utf8_decode()' (this is  
> PHP). And then you need to save your Python document with UTF8 encoding.
> Then you get all specials caracters like you want.
> ++
> 
> Jack
> 
> Le 8 mai 08 à 21:32, ths a écrit :
> 
>> Hi List !
>>
>>
>> I make a patch how receive text from a python script by OSC (python  
>> read a DB with MySQLdb). Pd receive text from python but when i put  
>> special chars (é^ ... etc), it says to me: "Type tag said this arg  
>> is a string but it's not!"
>> PD accept UNICODE, ASCII, ... UTF-8 ?
>>
>>
>> I have no ideas where they come from...
>>
>>
>> thanks very for your help and your council !
>>
>> tranquillement,
>>
>> Ths.
>>
>>
>> ps: with object [SHELL], no problemo !!! but i can use it .... i  
>> put my patch ... but it's very simple but why not ? ;-)
>>
>> /// my english is soooo good; i know ! .... but i'm french ;-) 
>> <v3_PyOSC.pd>_______________________________________________
>> PD-list at iem.at mailing list
>> UNSUBSCRIBE and account-management -> http://lists.puredata.info/ 
>> listinfo/pd-list
> 
> 
> _______________________________________________
> PD-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
> 





More information about the Pd-list mailing list