locked
Text encoding - International RRS feed

  • Question

  • User1726969078 posted
    Hello Sirs, I am developing an application that uses multiple languages. My questions are: - Can I tell somehow in the header the Encoding code (ie: western, ISO Latin 2, Unicode etc) of the text? - Is there a list somewhere on the web where I can find the default encoding type for the languages? Thx, Teddy
    Thursday, July 28, 2005 4:09 PM

All replies

  • User2084190835 posted
    There are two ways let the client Web browser know which encoding to use.  Firstly, you can define the charset within the content-type HTTP header and secondly within the META tag of the HTML:

    1.

      HTTP/1.1 200 OK
    Content-Type: text/html; charset=UTF-8
    Content-Length: 7188
    Date: Mon, 18 Feb 2002 22:06:32 GMT
    Last-Modified: Fri, 10 Aug 2001 17:32:25 GMT

    You can modify this using the Response.Headers collection I think (off the top of my head) if you need to.
    (http://www.jorendorff.com/articles/unicode/unicode-http.html)

    and

    2.

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

    As for a list of text encodings, this is probably a more useful link as it lists countries, languages and the character encoding commonly used to represent that langugae:

    http://www.w3.org/International/O-charset-lang.html

    However, I've never had to display a language which it wasn't possible to display using UTF-8 (the default output of ASP.Net).

    Wednesday, August 3, 2005 5:35 AM
  • User1416329745 posted

    Try the link below and download the localization tool kit.  Hope this helps.


    http://www.microsoft.com/downloads/details.aspx?FamilyID=6b6fb09f-f25c-48e9-9e26-b55144600da1&DisplayLang=en

     

    Friday, August 12, 2005 7:54 PM