Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-12-2010, 05:00 AM   #1
Registered: Sep 2004
Distribution: debian sarge 64bit (AMD)
Posts: 709

Rep: Reputation: 30
Chinese encoding not encoding in kate

I saved a plain text file with UTF8 encoding. I need to be able to copy and paste chinese characters into the xhtml. It doesn't seem to save it properly as when I reopen the file after saving all the chinese characters gets encoded into garbage text. What am I doing wrong?
Old 12-12-2010, 08:50 AM   #2
Registered: Jun 2007
Location: Japan
Distribution: Debian lenny, DSL, Solaris 10
Posts: 157

Rep: Reputation: 33
I don't use kate, but I don't think it's an encoding problem. How did you read the file and get garbage?
You can use the "file" command to check a file's encoding.
file filename
This would return
filename:         UTF-8 Unicode text
On Japanese(chinese and korean too) languages properly encoded in unicode.

If it's not correctly encoded maybe you have an input problem... Try another editor to check?

If it's correctly encoded, then the problem should be the method in which you are reading the file, I guess.
If you checked the text in a browser remember to put the
<html xmlns="" xml:lang="zh" lang="zh">
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
Telling the browser the language and encoding information to view the page properly.

I've only written pages in Japanese but they should be kinda the same method.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
My Ubuntu 6.06's Totem got Chinese Encoding Problem. ussr_1991 Linux - Software 4 07-24-2007 07:11 AM
vi encoding russiantux Programming 1 01-26-2006 11:59 AM
Encoding of ,, Anden008 Linux - General 2 11-17-2005 02:53 AM
Chinese Encoding and printing Maurice Arthur Mandriva 6 04-06-2005 04:59 PM
Other than US encoding kornerr Linux - General 4 01-21-2005 09:42 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:33 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration