Last post Jul 30, 2006 11:19 AM by e_screw
Jul 26, 2006 10:55 AM|sdoret3d|LINK
I have some content text in french and when I publish it to my website all the special characters are stripped out. I don't know if it has anything to do with Localization and/or Internationalization. How do I have my french text preserved.
Jul 26, 2006 10:12 PM|Gordon-Freeman|LINK
If you can set your server' regional setting, check if it's french.
Or try checking your files' encoding: File -> Advanced Save Options
And the <globalization/> section, try changing it's to the same with your server's settings. But usually utf-8 is okay.
Jul 27, 2006 03:35 AM|sdoret3d|LINK
Thanks for the suggestion.
Over the net I found :
which I used in the page_load, but it did not work. Probably missing something. Pehaps it need a namespace ... but as I does not generate any error ...?
However I also found:
which I used in a <script> </script> tag inside the declaration of the placeholder and It seems to work.
Until next time
Jul 27, 2006 03:53 AM|Gordon-Freeman|LINK
You may set culture info in InitializeCulture(), which overrides the page's base class's method of the same signature.
But [;)] I don't think it's the reason for your problem, and there is a
globalization section in web.config. Try checking or setting these 3 elements:
requestEncoding="any valid encoding string"
responseEncoding="any valid encoding string"
fileEncoding="any valid encoding string"
And for the meta data content-type, your can try setting the charset to the same encoding of your page, as I said it's in advanced save options of the file menu~ But of course usually some common encoding such as utf-8 or your
iso-8859-1 there is preferred~
Jul 30, 2006 11:19 AM|e_screw|LINK
you need to override the InitializeCultureInfo of your page, and its where you set the new culture info.