Problems? Is your data what you think it is? | |
PerlMonks |
Re: How to concatenate utf8 safely?by choroba (Cardinal) |
on Oct 21, 2016 at 14:34 UTC ( [id://1174463]=note: print w/replies, xml ) | Need Help?? |
Using is_utf8 somewhere outside of Encode is usually wrong. It doesn't tell you whether the string is UTF-8, it tells you how Perl internally keeps the value. Make sure you have the input encoding layer set up properly, and the same for the output. Then, you can just join the strings safely without any hassle. BTW, why do you use syswrite instead of print?
In Section
Seekers of Perl Wisdom
|
|