again: invalid byte sequence in US-ASCII

S

Sven Koesling

Hello everybody,

again I have problems with the f.ckn german umlauts ;-) This time within
a cgi script.

I try to parse the output from a shell script, e.g.: 'Ich habe viele
W=C3=BCnsche'
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/.=
 
M

Markus Fischer

Hi,

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
 
S

Sven Koesling

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top