RE: PerlScript/ASP: Unicode issue

"Ludwig, Michael" <[email protected]>
Newsgroups gmane.comp.lang.perl.active-perl
Message-ID <[email protected]>
> Okay, sorry for the long-winded XML examples (maybe they'll 
> be useful for future generations); I stripped down the 
> example to plain text, which exposes the problem:

[PerlScript snipped]

> Süße Ödnis statt ärgerem Übel.
> D'où vient que ça m'est égal?
> St? 11,6% ? a?e???a t?? ??????
> ???????? ?????? ? ??????

For completeness' sake, here's the VBScript equivalent:

<%@ language=vbscript codepage=65001 %>
<%
Option Explicit
Dim txt
txt         = "Süße Ödnis statt ärgerem Übel." _
& vbNewLine & "D'où vient que ça m'est égal?" _
& vbNewLine & "Στο 11,6% η ανεργία τον Ιούνιο" _
& vbNewLine & "Реальная погода в Москве" _
& vbNewLine

Response.ContentType = "text/plain"
Response.CharSet     = "UTF-8"
Response.Write txt
%>


Yields the correct result:

Süße Ödnis statt ärgerem Übel.
D'où vient que ça m'est égal?
Στο 11,6% η ανεργία τον Ιούνιο
Реальная погода в Москве

-- 
Michael Ludwig
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.