1
tvn3015
Why unicode UTF-8 display incorectly?
  • 2007/6/29 6:14

  • tvn3015

  • Just popping in

  • Posts: 53

  • Since: 2007/4/18


I just couldn't get my site to display UTF-8 correctly, anyone know why? Most of the characters are display correctly but a few of them display as a "�", I just don't know what I did wrong, can someone please help?

Please follow this link http://www.latvatlinhtinh.com for a sample UTF-8 charset test.

Thanks,

TVN3015
hhttp://www.XoopsViet.com - Xoops for Vietnamese

2
debianus
Re: Why unicode UTF-8 display incorectly?
  • 2007/6/29 8:05

  • debianus

  • Not too shy to talk

  • Posts: 179

  • Since: 2006/12/17


Look at here

3
irmtfan
Re: Why unicode UTF-8 display incorectly?
  • 2007/6/29 14:00

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


it seems you save those files (lang??) with ANSI encoding. you should save them with utf-8

4
BlueStocking
Re: Why unicode UTF-8 display incorectly?

You haven't done anything wrong.
That is the way they are suppose to be. You just haven't installed the proper character set on your pc.

Those with the proper character set sees them as they should and the translation works as expected.

http://translate.google.com/translate?u=http://www.tialia.net/archive/index.php/t-21485.html
hhttps://xoops.org/modules/repository .. It is time to get involved - XOOPS.ORG

5
tvn3015
Re: Why unicode UTF-8 display incorectly?
  • 2007/6/30 3:50

  • tvn3015

  • Just popping in

  • Posts: 53

  • Since: 2007/4/18


Thank you very much for all the reply. I know acxactly what the problem is! irmtfan is right! My webhosting server is using ISO-8859-1 when I create a new file and it will save the file with "ISO-8859-1" encoding. That's why some of the character incorrectly displayed when the file is open. So what did to get arround this problem is to create the file and make sure save it as UTF-8 encoding, and upload it to the server using the ftp client soft ware and everything working great. Thanks all for your reply.
Here is the test files you can test out if somone encounter same problem
1. UTF-8 display correctly: test1.html This file is created on my computer and upload it using ftp client software.
2. UTF-8 display incorrectly: test2.html This file is created using the web hosting cpanel software.

Thanks All

TVN3015
hhttp://www.XoopsViet.com - Xoops for Vietnamese

6
tvn3015
Re: Why unicode UTF-8 display incorectly?
  • 2007/6/30 3:52

  • tvn3015

  • Just popping in

  • Posts: 53

  • Since: 2007/4/18


Thank you very much for all the reply. I know acxactly what the problem is! irmtfan is right! My webhosting server is using ISO-8859-1 when I create a new file and it will save the file with "ISO-8859-1" encoding. That's why some of the character incorrectly displayed when the file is open. So what did to get arround this problem is to create the file and make sure save it as UTF-8 encoding, and upload it to the server using the ftp client soft ware and everything working great. Thanks all for your reply.
Here is the test files you can test out if somone encounter same problem
1. UTF-8 display correctly: test1.html This file is created on my computer and upload it using ftp client software.
2. UTF-8 display incorrectly: test2.html This file is created using the web hosting cpanel software.

Thanks All

TVN3015
hhttp://www.XoopsViet.com - Xoops for Vietnamese

Login

Who's Online

354 user(s) are online (281 user(s) are browsing Support Forums)


Members: 0


Guests: 354


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits