Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] unicode and Perl



Steve S wrote

 >
 > Somehow your suggested utf8::decode($x) only returns a "1", presumably
 > for success, and I do not see how to get it to return the value.
 >
--Typically I see this happen when the function returns an array.  You're
seeing the number of variables in the returned array probably.  Try
@example.com = xxx()
and see what happens.------

I did try that, but even the array is just "1".

By the way, I thought that the use Encode 'decode_utf8'; $a = 
decode_utf8($xxx) was working, but it does not always handle the 
characters properly-- sometimes its OK and sometimes not.

Clearly I do not understand what is happening here, and with unicode, 
there is the constant danger that things appear to work for simple cases 
but actually when you get into something more typical you are messed up.

Thanks for the suggestion!

David


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links