> With my test cases (provided) I have carefully narrowed down the > inconsistency to Apache::ASP, since everything else is either not > applicable or the same. >
Could you be a bit more specific on this ? I've built many a site in international character sets and using Apache::ASP for well over decade, so I can tell you that it it works just fine with UTF-8 (and ISO-8859-[157] if that matters). Last problem was back in 2004 when Content-Length was incorrectly calculated. > No, it doesn't, since I'm not testing the browser. For the record > though, when I use GET -e, I see the correct header in both tests: > Content-Type: text/html; charset=ISO-8859-1 That's as simple as ``$Response->{ContentType} = "text/html; charset=UTF-8";'' It doesn't tell us anything about the actual encoding of the content. Bear in mind that your selected encoding might be insufficient to display the text you're feeding it. > Yes, this is right out of the manual (open): > "... the default layer for the operating system (:raw on Unix, :crlf on > Windows) is used." > The :utf8 output layer encoding must be explicitly set, as it is not the > default. However, I have not figured out how to do this successfully > within Apache::ASP. How does file handling come into play here ? Not that it's relevant but it works quite the same way as outside of Apache::ASP. > > This is part of an exercise to do just that. At the moment, we have > many lines of legacy code still using Latin-1, and are converting them > step-wise to use UTF-8. As the test cases show however, they do not > play well together on Apache::ASP (though they are fine everywhere > else). If anyone has any suggestions on how this can be resolved so > that we can continue the conversion, that would be much appreciated. > > Have a look at Text::Iconv, iconv(1), iconv(3) and friends. Also, Encode. Best Regards, Thanos Chatziathanassiou --------------------------------------------------------------------- To unsubscribe, e-mail: asp-unsubscr...@perl.apache.org For additional commands, e-mail: asp-h...@perl.apache.org