Hello,
I have a fully UTF8 encoded site in which I want users to upload files
(simple :encoding(iso-8859-1)","sconet1.csv") or print OUT
$!;
my $buffer;
while (read($fdat{efilename},$buffer,32768)) {
print FILE $buffer;
}
Hello JC,
Try to set your locale inside your Embperl file, try:
[-
use locale;
-]
just before your upload code, and if this doesn't help try changing the
locale for this file with the POSIX module:
[!
use POSIX qw(locale_h);
!]
[-
use locale;
setlocale(LC_ALL, "pt_BR.ISO8859-1");
-]
Change
Hi JC,
I've got a similar problem on my site except the other way around-
everything comes in ISO-8859-1 and I want it in UTF8. Perl usually
tries to guess at the best encoding when it takes in the data and then
encodes it internally as best it can. You may have a problem where the
data com
Ben Hiebert wrote :
Perl usually
tries to guess at the best encoding when it takes in the data and then
encodes it internally as best it can. You may have a problem where the
data comes in as ISO88591 but perl thinks it is UTF8 data, encodes it
internally as UTF8 and then prints out the UTF8-