Jump to content
Chinese-Forums
  • Sign Up

Please help with UTF-8


JustJon

Recommended Posts

What text-editor are you using? You will need something that can work in UTF-8, otherwise the characters will be GB, and conflict with the UTF-8 encoding.

In Notepad, Save As, and then choose UTF-8 as encoding. Then upload and see if it works.

Roddy

Link to comment
Share on other sites

Thanks for the quick response.

I'm using DreamWeaver but I have also tried TextEdit as I am on a Mac. I've changed all the settings I could find to UTF-8 (both the opening and saving of files) in both programs. Both work fine when viewed locally but not when uploaded. I thought it might be the text which I'm copying into the documents, but I've now taken a line of text from a web page that uses UTF-8 (and works) but it garbles that text too.

Could it be something the server is doing?

Or the way I'm uploading the files?

Link to comment
Share on other sites

You my friend, are a star. Just that tiny bit of info about Fetch (untick "Translate ISO characters" in the preferences) has made all the difference. I've posted about this on 3 different forums now and have been scratching my head for quite some time. Thank-you very much indeed, you've made me a very happy person.

Link to comment
Share on other sites

No problem, once I'd eliminated the stuff that I messed up on before, a quick Google turned up that page. I still don't fully understand a lot of encoding issues, but I'm getting there . . .

Roddy

Link to comment
Share on other sites

I've made a tool to convert Chinese characters to Unicode numerical character references. Just paste your Chinese characters into the box and press "convert".

This will help prevent problems with file transfers and the like, though the resulting code isn't much fun to edit if you have to go in and change the file occasionally.

Link to comment
Share on other sites

Join the conversation

You can post now and select your username and password later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Click here to reply. Select text to quote.

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...