?
Solved

Chinese text showing characters ������

Posted on 2014-11-12
6
Medium Priority
?
72 Views
Last Modified: 2014-11-22
Hi there,

On this page you can see we are trying to add Chinese text 测试。中国文字 but it is displaying weird characters ������

http://www.telfordsmith.com.cn/new-machine.asp?MachineryID=125

There has to be a simple explanation but I cannot work it out...please help?

Thanks in advance.
0
Comment
Question by:warkey
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 36

Expert Comment

by:Loganathan Natarajan
ID: 40439222
Is that file is saved as " utf-8 " way encoded?
0
 

Author Comment

by:warkey
ID: 40439224
<!DOCTYPE html>
<html lang="en">
<head>
<title>New Machine</title>
<meta charset="UTF-8">
<meta http-equiv="Content-Language" content="en" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

Yes, I believe it is according to the meta details?
0
 
LVL 36

Expert Comment

by:Loganathan Natarajan
ID: 40439230
You need to check the file stream. check the attachment.

also did you check the file data how it was saved for display?check this
0
Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

 
LVL 36

Expert Comment

by:Loganathan Natarajan
ID: 40439254
It looks fine to me.. when i use note way. check the attachment.
encode-1.png
encode-2.png
0
 

Accepted Solution

by:
warkey earned 0 total points
ID: 40448709
Thanks anyway, Loganathan...I worked it out!

I used Server.HTMLEncode and a HTMLDecode function.
0
 

Author Closing Comment

by:warkey
ID: 40459207
I worked it out myself!
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question