help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Grep Japanese characters


From: YUE Daian
Subject: Re: Grep Japanese characters
Date: Fri, 13 Jul 2018 10:58:41 +0800

On 2018-07-12 22:10, Tak Kunihiro <homeros.misasa@gmail.com> wrote:
>>>> I want to grep Japanese string.  I can do it on Emacs for Mac but
>>>> cannot do it on Emacs for MS Windows.
>>>>
>>>> I found that I can grep Japanese string using
>>>> c:/msys64/usr/bin/grep.exe on command prompt (outside of Emacs).
>>>> However, I cannot do it using c:/msys64/usr/bin/grep.exe on command
>>>> prompt by M-x shell (inside of Emacs).  I confirm that LC_ALL is set
>>>> to en_US.UTF-8 on both environments.
>>>>
>>>> Can you give me a hint to grep Japanese string on Emacs for MS
>>>> Windows?
>>>
>>> You cannot pass UTF-8 encoded parameters to sub-programs on
>>> MS-Windows.  You can only use the encoding of your system codepage.
>>> Sorry, it's an MS-Windows limitation.
>>
>> I remember Windows 10 has a beta option to use UTF-8 for the whole
>> system instead of your local encoding.
>
> I have checked a box on a dialog by following steps and
> confirmed that I can grep Japanese string.
>
> Thank you for the hints!
>
>
> Region & Language
> -> Administrative language settings
> -> Language for non-Unicode programs
> -> Change system locale...
> -> Beta: Use Unicode UTF-8 for worldwide language support

I am glad it made sense.

Just a reminder:
If you select this button, you may find some local software that use
hard-coded encoding do not show characters correctly.

I personally do not care because Windows to me is only a game center
anyway.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]