LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Japanese font problem in vim. (https://www.linuxquestions.org/questions/linux-newbie-8/japanese-font-problem-in-vim-802966/)

nithima 04-19-2010 08:13 PM

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.

Tinkster 04-19-2010 08:27 PM

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

nithima 04-19-2010 08:53 PM

Thank you , Tinkster.

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

--
N.L.

Tinkster 04-19-2010 09:06 PM

Quote:

Originally Posted by nithima (Post 3940955)
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 (Post 3940955)
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

nithima 04-19-2010 09:32 PM

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.

grail 04-19-2010 09:52 PM

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.


All times are GMT -5. The time now is 08:43 AM.