[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Insert ñ

ingo@ingo-schaefer.de writes:
>> I have this error:
>> ldap_add: Invalid syntax
>>         additional info: cn: value #0 invalid per syntax
> I think, you should BASE64 encode these Values.

No need.  He just needs to convert the file to UTF-8.  Like
this, for example:

#!/local/bin/perl5 -wp
# Convert iso8859-1 to UTF-8
s/([\200-\377])/pack('CC', 0xC0 + (ord($1) >> 6), (ord($1) & 0xBF))/ge;