This is strange and I've been knocking myself out with it. I have a utf8 character set database storing English and Farsi characters. When displayed via a web browser and through MySQL queries in the MySQL shell all characters are displayed properly. However, when retrieving data via ASP all of the non-English characters come out as question marks, e.g., "?". (If I look at non-downloaded Farsi characters via my web browser they are fine. If I look at the database characters with phpMyAdmin - 2.11.6 they are fine. It's only when I've downloaded them while in the browser that they become ? marks. )
I have:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
in the header and:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd" dir="rtl" lang="fa">
before the header.
I also have
<p dir="rtl" lang="fa"> </p>
around the Farsi string downloaded.
If I did not see the Farsi characters on the webpage without the download - or the Farsi characters in the database I could understand it. As it is I've tried everything I can think of - and somethings I even know are wrong - with no results. I expect it's something easy, but I cannot find it.
Thanks to all.
Rick
I have:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
in the header and:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd" dir="rtl" lang="fa">
before the header.
I also have
<p dir="rtl" lang="fa"> </p>
around the Farsi string downloaded.
If I did not see the Farsi characters on the webpage without the download - or the Farsi characters in the database I could understand it. As it is I've tried everything I can think of - and somethings I even know are wrong - with no results. I expect it's something easy, but I cannot find it.
Thanks to all.
Rick
Comment