Again: invalid byte sequence in US-ASCII

Hello everybody,

again I have problems with the f.ckn german umlauts :wink: This time within
a cgi script.

I try to parse the output from a shell script, e.g.: 'Ich habe viele
Wünsche'
While reading ruby (1.9.2) complains with "invalid byte sequence in
US-ASCII" so I tried to enforce utf8.
Now the reading works, but on my website I get the output "Ich habe
viele W\u00FCnsche"

Do You have a hint for me?

Thanks a lot,
greetings
Sven

···

--
Posted via http://www.ruby-forum.com/.

Hi,

···

On 01.05.2011 13:11, Sven Koesling wrote:

I try to parse the output from a shell script, e.g.: 'Ich habe viele
Wünsche'
While reading ruby (1.9.2) complains with "invalid byte sequence in
US-ASCII" so I tried to enforce utf8.
Now the reading works, but on my website I get the output "Ich habe
viele W\u00FCnsche"

Do You have a hint for me?

Could you provide a short self-contained example?

thx

Oh my good, I am such an idiot. Forgive me for steeling Your time!
Here is the solution:
Put this in the html header:

<meta http-equiv="Content-Type" content="text/html;charset=utf-8" >

Again: so sorry!
Have a nice weekend,
best,
Sven

···

--
Posted via http://www.ruby-forum.com/.