[PD] standard encoding of pd files in each system?

Bryan Jurish jurish at uni-potsdam.de
Wed Jan 26 22:02:52 CET 2011


moin all,

@hans: thanks for the vote of confidence :-)

@João: ... for converting strings (lists of bytes, represented as pd
floats) to floats (as in pd floats, a la C strtof() & friends) you can
do some sick bad ugly and wrong things using [bytes2any] in conjunction
with [locale] (e.g. by dynamically re-setting LC_NUMERIC) ... but maybe
that wasn't what you meant...

marmosets,
	Bryan

On 2011-01-26 21:06:35, Hans-Christoph Steiner <hans at at.or.at> appears
to have written:
> 
> Pd < 0.43 is probably something like ISO-8859-1 or perhaps UTF-8, Pd
> 0.43 is UTF-8.  UTF-8 or ISO-8859-1 will both be fully ANSI if only the
> standard ASCII chars are used, i.e. no ü, ã, é, etc.
> 
> For converting, I like moocow/any2bytes and moocow/bytes2any.
> 
> .hc
> 
> On Jan 26, 2011, at 5:17 AM, João Pais wrote:
> 
>> Hi,
>>
>> I was curious to know what is the standard encoding of pd files in
>> each operating system. According to Notepad+, in XP is ANSI.
>>
>> Or a followup question, which format is better for pd to read a string
>> of characters and convert it to floats? ANSI seems the be most
>> reliable here where it comes to interpreting the data, although utf8
>> without BOM renders them in the symbol atom more accurately.
>>
>> The reason I'm asking is because I'm working with converting ascii
>> characters to their float value.
>>
>> If anyone wants, I can send a small test patch to try out.
>>
>> João
>>
>> -- 
>> Friedenstr. 58
>> 10249 Berlin (Deutschland)
>> Tel +49 30 42020091 | Mob +49 162 6843570
>> Studio +49 30 69509190
>> jmmmpais at googlemail.com | skype: jmmmpjmmmp
>>
>> _______________________________________________
>> Pd-list at iem.at mailing list
>> UNSUBSCRIBE and account-management ->
>> http://lists.puredata.info/listinfo/pd-list
> 
> 
> 
> ----------------------------------------------------------------------------
> 
> 
> If you are not part of the solution, you are part of the problem.
> 
> 
> 
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
> 

-- 
Bryan Jurish                       "There is *always* one more bug."
jurish at uni-potsdam.de       -Lubarsky's Law of Cybernetic Entomology



More information about the Pd-list mailing list