Special Characters

Discussion in 'ASP.NET / ASP.NET Core' started by plateheates, Feb 26, 2005.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I made Web Project by VB.Net and it is successfully operating.
    However, as this is some engineering use, the characters requires special characters such as
    " ° " or "m²" . I applied those special characters to .aspx files.
    When I call that page through browser, the returns are diferent from applied characters.
    Doesn't server support special characters? or am I wrong in applications?[​IMG]
     
  2. Use UTF-8 encoding.
     
  3. insert

     
  4. utf-8 is a universal standard - there most certainly shouldn't be any differences in how it's handled...on any platform for that matter.

    ----
    Brian H. Madsen
    Microsoft SQL Server IG Perth - Organiser
    http://www.sqlserver.org.au
     
  5. I used chr(-21022), the ASCii code of " ° " in program, and I found in web.config with paragraphs as follows already


    <globalization requestEncoding="utf-8" responseEncoding="utf-8" />



    I also insertes paragraphs into page <meta ........... utf-8"> as instructed.


    The results redirected to that page comes with errer "The page not found".


    I tried same in localhost, the results are OK.


    I think there is some difference of utf-8 handling between localhost and the server.
     
  6. The problem was finally solved.


    There were more than one ascii values for special characters.


    For example, by VB.net asc("°") replies -24221, but chr(-24221) returns error.


    I scannedchr values of numbers and found another ascii codeas 176.


    Chr(176) works OK.


    Thanks for helps, Mr. Bruce and Madsen.[​IMG]
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page