Fog Creek Software
Discussion Board




Knowledge Base
Documentation
Terry's Tips
Darren's Tips

aspx & Unicode...

hi there

I have a template, producing .aspx files. It works all well, but citydesk does convert the "umlauts" (äöü) on the document wrong (yes, the encoding (utf8) tag is there too, but the sourcecode of the produced file is wrong)...

how can I force citydesk to produce aspx-documents with plain "äöü"'s in it?

Thanks&regards
Guido

gKay
Monday, January 05, 2004

Did you set the CodePage to UTF-8 in your <%@Page%> directive?

Joel Spolsky
Monday, January 05, 2004

yes, you can have a look on the page @ 

http://195.234.230.154/_about/_Formular.aspx

the template is an exact copy of the one used for the rest of the side, just added the page directive and the aspx-extension setting...

It's not the problem, that the page is displayed incorrectly, but it looks like CityDesk is converting the chars instead of using unicode...

Thanks!

gKay
Wednesday, January 07, 2004

IMO your UTF directive has some errors:

Copied from your site link:
<meta http-equiv=Content-Type content="text/html; charset=UTF-8">


The way the UTF directive should be writen:
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" >

David Mozer
Wednesday, January 07, 2004

huh.. a typo.. thanks, david.

But correcting it doesn't change anything in its behaviour...

It's not a citydesk problem (as I was thinking first) since it looks like it's converted when the aspx page gets compiled....

gKay
Wednesday, January 07, 2004

I can't see your <%@Page%> directive from there. Do you have one in the source file? Does it specify UTF-8? You need this to tell .NET that your page is in UTF-8.

Joel Spolsky
Friday, January 09, 2004

yes, the directive is:

<%@ page contentType="text/html; charset=utf-8"%>

gKay
Monday, January 12, 2004

*  Recent Topics

*  Fog Creek Home