Charset problem!

Discussion in 'ASP.NET / ASP.NET Core' started by alrazem, Feb 18, 2008.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hello,
    I have a bunch of files with Arabic names. I want to be able to view the names of the files as it is typed through the website.
    An asp.net application reads the names of the files and parse it to the viewer.
    but it doesn't show well!
    I tried many charsets but nothing works! when I view FTP files through windows explorer. the files are typed in different symbols.

    URL: http://www.alrazem.com/Articles.aspx

    Please help!
     
  2. Well, thanks wisemx. but I guess my problem doesn't lay here, because it works well on my machine. but when i upload the files it doesn't. i dont want to do localization.
    The application reads a specific directory, and reads files names. then appends each file name into a gridview.
    Plus, when I browse FTP files, i don't see the names i typed for the files, instead i see meaningless symbols!
     
  3. if you look in the source of your code you are setting your characeter set to ISO-8859-1, which is latin.

    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />

    You are going to want to set that to unicode or to iso 10646.

    http://en.wikipedia.org/wiki/ISO_10646

    Also make sure you set the globalization setting in your web config as well so .net will act accordingly as well.
     
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