LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-19-2010, 09:13 PM   #1
nithima
LQ Newbie
 
Registered: Jan 2010
Posts: 10

Rep: Reputation: 0
Japanese font problem in vim.


Hi,

I am using vim for opening and editing my source code,
but the problem concerned japanese fonts is occurred.

Japanese text can not be shown correctly (not japanese) by using vim.

Please tell me, how can I do to solve this problem?

Thank you very much.
 
Old 04-19-2010, 09:27 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Sorry - I don't understand.

You have some source that has both Japanese characters and ASCII in it, and
the Japanese characters don't display right or not at all?


Cheers,
Tink
 
Old 04-19-2010, 09:53 PM   #3
nithima
LQ Newbie
 
Registered: Jan 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Thank you , Tinkster.

Oh, I'm sorry. my English is so bad.
yes, It 's everything as you said.

--
N.L.
 
Old 04-19-2010, 10:06 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by nithima View Post
Thank you , Tinkster.

Oh, I'm sorry. my English is so bad.
Don't worry - I've seen worse ;}

Can you please attach a code snippet that shows the behaviour to your post?

Quote:
Originally Posted by nithima View Post
yes, It 's everything as you said.
So does the Japanese not show at all, or as odd characters?
Maybe attach a screen-shot, also?

Cheers,
Tink
 
Old 04-19-2010, 10:32 PM   #5
nithima
LQ Newbie
 
Registered: Jan 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Thank you, Tink

this 's a part of code.
#define STRDATA_16 "Storage" // ・ヌ。シ・ソウハヌシセ・

I tried to change System>Language at Linux/Fedora to Japanese and reboot.
But no anything changed.

By using general text editor ,i.e. gedit , no problem concerned Japanese character.
I think that it's necessary to set configuration for vim.
Is this the answer of my question?

--
N.L.
 
Old 04-19-2010, 10:52 PM   #6
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,255

Rep: Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686
I am not sure if this helps but I saw that you can set the locale like so within vim:
Code:
:language ja_JP.UTF-8
You may need to check which locales you have installed as the info after the dot "." can be different.
 
  


Reply


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
SCIM font - got SCIM working, now all flash has japanese font.....help! sandaili Linux - Software 6 03-24-2009 08:27 AM
looking for the name of the font that looks like fake Japanese katakana characters Hoyeru Linux - Desktop 1 01-27-2007 05:39 AM
Japanese Font problem. MasterKnight Debian 1 08-25-2005 08:06 PM
Odd Japanese Font Problem idolcrash Debian 0 07-31-2005 01:28 AM
How to install (japanese) font sets? atheist Debian 9 03-20-2004 03:58 PM


All times are GMT -5. The time now is 12:31 PM.

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