.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Chinese characters shown as boxes in IE8 any help???

Posted By:      Posted Date: October 07, 2010    Points: 0   Category :ASP.Net

My developed site is a multi language site which supports Englis, Thai and Chinese, the chinese characters are shown as boxes when I view it it IE8. I tried using

<meta http-equiv="X-UA-Compatible" content="IE=7" />

the folowing code in my master page which forces IE 8 to render on IE 7 standards but of no use

Any help???

View Complete Post

More Related Resource Links

IE 8 Issues with Chinese/Japanese Characters


On my web application, I display information in different languages. Everything works fine in IE compatibility mode and FireFox but it shows boxes for chinese/japanese languages. I am pretty much having the same issue as described here



Thanks for your help.

How to display UTF-8 Chinese Characters in Reporting Services



We have stored some chinese characters in SQL database with datatype as nvarchar, but they are displayed in RS as some weird characters.

like this: è<±å.?è<±ç¾ZèÃ‚¸Ã¨?Ã¥.?Ã¥


When we code the asp pages, we put the following on each page to display the chinese characters properly.


 <meta http-equiv="CONTENT-TYPE" content="TEXT/HTML; CHARSET=UTF-8">


So my question is what do I need to do in RS in order to show the chinese characters properly as well ?


Many thanks!

Chinese characters in pages


I uploaded my website which I precompiled in vs 2005 to a new website which has a sql 2008 database.  When I login to the website, there are Chinese characters which completely wreck the page design. Do i have to open my website in vs 2008 and precompile it in order to work with the 2008 database?

If so, why is it that I can't compile my site in vs 2008?  I get a few errors, all the same one. I'm told:

Error 55 Reference to a non-shared member requires an object reference. C:\zlinkexchange\ZLinkexchange\paypal\paypal_featured.aspx 27 9 C:\zlinkexchange\ZLinkexchange\

This line is underlined in blue.

<%Dim cust As New BusinessLogic.SiteUser(CInt(BusinessLogic.SiteUser.CurrUserID))%>

I'm also told that name is oudated and to use a new construct (informational):

Binding the multiple drop down boxes in GridView using JQuery in ASP.NET

Here is the code for binding the multiple drop down boxes in GridView using JQuery in ASP.NET

Problem Cleaning Illegal Characters out of an XML String



I'm trying to strip illegal characters out of an XML string before I send it off to a public web service.  The xml will look something like this:

<field name="first_name">George</field>
<field name="last_name">Harrison</field>
<field name="notes">This is a note.  Any character could appear here</field>

I need to pull out any ampercand (&) charachters in the any of the fields, as well as any < or > characters, which would make the XML unreadable.

I've tried it like this:

Private Shared Function cleanQuery(ByVal queryNode As String) As String 
    Dim root As XElement = XElement.Parse(queryNode) 
    For Each x As XElement In root.Elements 
        x.Value = x.Value.Replace("&", "&").Replace("<", "<").Replace(">", ">") 
    Return root.ToString() 
End Function


That doesn't work so well.  I get the error stating:

     There are multiple root elements. Line 1, position 15.

I tried wrapping the XML in a single root element, like this:

Private Shared Function cleanQuery2(ByVal q

Store and display Japanese characters



Can anyone tell me the best way of storing Japanese characters through ASP.NET.
I have to put characters into a asp:textbox on one page, which saves it to an Access DB.
On a second page I want to display the content in a asp:label.

Should I store the characters directly to the database or should they be encoded, and
how do I encode the characters? 

In my web.config i have:

<globalization fileEncoding="ISO-2022-JP" requestEncoding="ISO-2022-JP" responseEncoding="ISO-2022-JP" culture="ja-JP" uiCulture="ja-JP" />  

On the display page I have:

<meta HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=shift_jis">


string.Split - not all characters allowed as separator



I am working on a site where I use the Split function on a string.

To make sure I used a separator character that I do not use anywhere in the data I selected the character '£'.

This worked fine in Firefox and Safari, but in IE8 I get an 'Index out of range' error, so apparently the '£' character is not handled correctly.

I changed the separator to ';', and then it works fine.



Remove characters in a string


i have a string like this   sravani/, asdfff/, lsdsf/
i want to remove last character '/'  in the above string...
which function can i use?

pls help me....

Cutting Edge: Modal Dialog Boxes with AJAX


This month Dino Esposito shows you how to get Windows-style modal dialog boxes for your Web applications thanks to the Ajax Control Toolkit and some clever coding.

Dino Esposito

MSDN Magazine Launch 2008

Problems Rendering Special Characters


Good afternoon ASP programmers,

I am creating an application that creates math problems for students.  I wish to use a special character for negation to differentiate it from the minus sign.  I am using the Unicode character U02c9. 


This is a composite screen shot of two problems. The top one is rendered in Fire Fox and the bottom one in IE.  I'd like to know how to change my JavaScript so that IE is rendered like Fire Fox.  I have created variables that I use for my special characters.

var symMul= "×";
var symDiv= "÷";
var symNeg= "?";

Both IE & Fire Fox correctly render the symDiv and symMul symbols. Any suggestion would be greatly appreciated.




Repeater issue, all code inside Repeater are not shown


I have a Repeater who should show some data from my ms.sql server. But all code inside the Repater is not shown on my .aspx page. What am i doing wrong. I have a similar Repeater on another page and there it works fine.


 <div class="AnsaettelseKontrakt Folders">
      	            <table cellpadding="0" cellspacing="0" width="750px" align="right">
                            <th class="BrugerHeader" style="width:300px;">Filnavn</th>
                            <th class="BrugerHeader" style="width:80px;">Størrelse</th>
                            <th class="BrugerHeader" style="width:150px;">Dato</th>
                            <th class="BrugerHeader" style="width:180px;" colspan="2">Brugere</th>
                            <th class="BrugerHeader" style="width:40px;">Værktøjer</th>
                        <asp:Repeater ID="RepeaterAns" runat="server" onitemcommand="Repeater1_ItemCommand" >
                                <tr class="Br

Using Editor to support Spanish characters?


I recently switched from freetextbox to the built in Ajax editor because of issues ftb had with update panels.  The Ajax editor works great except for one problem, it messes up my spanish characters.  For instance, it will replace ñ with ? and post the ? to my database.  Is there anyway to not make it do this and leave it as the actual ñ ?  if the same characters is placed in a standard textbox it will submit with no problem.

Thanks for your time!

DropDownList FindByText with Special Characters...?


I have a dropdownlist which I dynamically select a list item using findbytext as long as there are no special characters.  One entry in the list starts with a percent symbol which I have been unable to dyncamically select.  I have confirmed that there are no spaces in the list item and have hard coded the query with the string to try to find the problem.  FindByText("% Increase")    I believe it has something to do with the special character but have been unable to identify a method to work around this.  Any help would be appreciated.


If Not ddlColumns1.Items.FindByText(strDefault) Is Nothing Then 
    ddlColumns1.Items.FindByText(strDefault).Selected =
End If

Validate mutually exclusive text boxes


Meaning only one of them can have a value, but not both.

I suspect one validation control can't handle both.


Any ideas? 

Saving Check boxes


I am creating an application that uses several check boxes. I check one or more of these check boxes. When I save a record and reopen it all field come back with the appropriate info, except the check boxes come back unchecked. I am using a date type "bit". It apperas that I have the check boxes bound to the right fields in the table. Does anyone have any suggestions<

Keith @ LPG

MySqlDataReader - Reading special column characters



I have a MySQL database, which contains columns with danish characters like ø æ and å.

When the MySqlDataReader tries to read this column name:

for (int i = 0; i < MysqlReader.FieldCount; i++)
       string Key = MysqlReader.GetName(i);


The result is not the expected character, but some kind of ASCII value of it. For an example, 'å' gets interpreted as 'Ã¥'.

What to do?

Thanks alot for your help :)

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend