Solved

Chinese text showing characters ������

Posted on 2014-11-12
6
65 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
  • 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
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

829 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