[Israel.pm] How - utf8 hebrew with vvim

Dov Levenglick dov.levenglick at gmail.com
Sun Jan 27 08:32:22 PST 2013


Is that a spoiler for your upcoming talk?

       בברכה  |  Best Regards,
דוב לוונגליק  |  Dov Levenglick


On Sun, Jan 27, 2013 at 5:33 PM, Gaal Yahas <gaal at forum2.org> wrote:

> It sounds like your new system can handle UTF-8, but your data is still
> 8-bit (8859-8). When you try editing the file without telling the editor
> about its legacy encoding, it gets mangled which is why it's also mangled
> in other viewers such as the browser.
>
> You have two options: keep editing the file in the legacy encoding, for
> example by saying encoding=iso-8859-8 as you mentioned. This may be fine
> for  a single file, but you probably don't want to make this setting for
> all your files (by putting it in your rc file) -- you will lose the ability
> to edit (say) Latin-1 or other files.
>
> The other option is to re-encode the file in UTF-8. This is the modern
> approach. This can be as simple as
>
> iconv -f ISO-8859-8 < myfile > myfile-in-utf8
>
> (iconv also has a "-t", but UTF-8 is the default. iconv -l will display a
> list.) But this means that any other user of the file needs to understand
> the new encoding, or you break them. But it's 2013, and it's time to get
> rid of 8-bit encodings already.
>
> On Sun, Jan 27, 2013 at 4:20 PM, Shlomit Afgin <
> shlomit.afgin at weizmann.ac.il> wrote:
>
>>
>>  I know it's not a perl question but I'm sending this question in case
>> someone know or can redirect me to the right place.
>>
>>  I'm working with gvim on our old server with encoding=iso-8859-8 and it
>> work okay.
>> I have new linux server and I would like to work with encoding utf8.
>> When I gvim a file I see the hebrew as junk and also write junk. When I
>> look from the web it's also look junk.
>> If I add to the file ~/.gvimrc the line: set encoding=iso-8859-8
>> I see the hebrew okay in gvim  and in browser.
>>
>>  I also try :
>>       env LANG=he_IL.UTF-8 vim -H
>>      LANG=he_IL gvim -H
>>  With no success.
>>
>>  What I need to do in order to be able to see utf8 hebrew with gvim?
>>
>>  Thanks,
>> Shlomit.
>>
>>
>> _______________________________________________
>> Perl mailing list
>> Perl at perl.org.il
>> http://mail.perl.org.il/mailman/listinfo/perl
>>
>
>
>
> --
> Gaal Yahas <gaal at forum2.org>
> http://gaal.livejournal.com/
>
> _______________________________________________
> Perl mailing list
> Perl at perl.org.il
> http://mail.perl.org.il/mailman/listinfo/perl
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.perl.org.il/pipermail/perl/attachments/20130127/2cd6af09/attachment-0001.htm 


More information about the Perl mailing list