Blog /UTF-8 Encoding

September 25, 2007 08:43 +0000  |  Blogger Geek Stuff 'Round-the-World Switzerland Travel 6

Pavel will appreciate this, but the rest of you might wanna read this anyway. I've added a single thing to my site that *should* fix the problem some of you have been running into when trying to post comments. For some reason, when some people tried to post a comment with a non-ASCII character in it (like curly quotes or non-English characters) the post would get truncated. I *think* I've fixt this by adding a charset definition to the HTTP headers. Apache will do this transparently when you add this to your VirtualHost.

AddDefaultCharset UTF-8

So, don't necessarily go about trying to break my site by posting fake comments, but if you post something and it doesn't come through exactly as you intended, please email me what you sent and I'll try to figure out what broke.

Oh, and I'm in Geneva today. So far, it sucks. The town is small, noisy, dirty and kinda ugly. No snow, not much in the way of mountains, just cold. I'll be going up to the UN headquarters today as well as the Red Cross museum though. That should be interesting :-)

Comments

pavel
25 Sep 2007, 2:30 p.m.  | 

привет

Stephen Young
25 Sep 2007, 2:59 p.m.  | 

If you can, go to Interlaken, it's right in a valley and is absolutely beautiful.

Daniel
25 Sep 2007, 4:27 p.m.  | 

Pavel, I'll assume that was a test. I had to use Google Translator to figure out what it meant :-)

No time for Interlaken, I'm going to Milan tomorrow! :-)

Scott
25 Sep 2007, 4:28 p.m.  | 

Geneva? I hear they're having a convention.

Melanie Cassidy
25 Sep 2007, 9:47 p.m.  | 

I hope you bought a sweater! :/

Daniel
25 Sep 2007, 11:15 p.m.  | 

Nope. Maybe I will in Milan? It'll only be like, 1000€ there :-)

Post a Comment of Your Own

Markdown will work here, if you're into that sort of thing.