..You will see what I ment when you reload the page in utf-8
Hi Boys. I think it's perl's fault, but if someone of you had such
problems and tell mi what is wrong, I will be very gratefull.
So.. I manage a multilanguage site and it is all utf-8. There is an
application where the users place some text. The used languages are
mainly Bulgarian and English with .. German eventualy. There are
situations in which the user enter latin and ciryllic characters in
different textboxes.
And here my nigthmer begins.
the applicatin decides that the input is Latin-1(or i do not know)
and brakes all cyrilic characters into separate bytes
which is simply frigthening!!!

You will see what I ment below when you reload the page in utf-8
#################
Тестов текст
######becomes
Те``‚ов `‚ек``‚

It is interesting that Perl 5.6.1 does not make such problems
The current configuration is Apache 1.3.31 mod_perl 1.29 Apache::ASP
2.57n on Mandrake 10.0
I made everything possible to resolve the problem.
Here is how looks the beginning of my global.asa:

use utf8;
binmode(STDOUT, ':utf8');
binmode(STDIN, ':utf8');
use DBI;
#use Data::Dumper;
require "../SomeModule.pm";
##AND more
sub Script_OnStart{
       $Response->{Charset}="utf-8";
#....
}
I placed in httpd.conf too
<Perl>
use utf8;
#...
</Perl>
My pages are all written in utf-8
I do not have variables written with cyrillic characters
 Only literal text in the HTML
There should be no reason for this disaster to happen to me.
It brakes months of work.

Thak You




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to