Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

[SOLUTION] Re: lug-bg: utf,ansi,unicode etc...


  • Subject: [SOLUTION] Re: lug-bg: utf,ansi,unicode etc...
  • From: raptor <raptor@xxxxxxxxxx>
  • Date: Mon, 11 Aug 2003 00:42:17 +0300

pyrwo mersi za pomoshta...
Naistina  w GEDIT ima wariant :") ma na koi da gleda...
Taka za wsichki koito polzwat gedit :
Edit\Preferences\Save da si naglasqt :

When saving existing file ... Use original encoding if possible
When saving new file ... Use current locale's encoding if possible

Oswen towa w  Edit\Preferences\Open da si dobawqt encoding-ite koito im sa nuvni..

taka a sega resheine za tezi koito sa opleskali nestata kato men i weche sa go zapisali faila wyw UTF8...

1. perl -MCPAN -e 'install Convert::Cyrillic'
2. perl -MCPAN -e 'install Lingua::DetectCharset'
3. pishete si tozi perl script :

#!/usr/bin/perl
use Convert::Cyrillic;
use Lingua::DetectCharset;
undef $/;
while (<>) {
    $cs = Lingua::DetectCharset::Detect $_;
    print Convert::Cyrillic::cstocs($cs,'win',$_);
}


4. izpalnqwate go ei taka :

./2win1251.pl filename.txt > newfilename.txt

zabelevki *** : 
 - faila w koito zapiswate trqbwa da e s drugo ime :") inache ste poluchite fail s 0 bytes size
 - ako mahnete "undef $/" move dave wseki red da e razlichen encoding :") 


raptor
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================



 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.