Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
проблема с определение кодировки
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Russian
View previous topic :: View next topic  
Author Message
syn0ptik
Apprentice
Apprentice


Joined: 09 Jan 2013
Posts: 267

PostPosted: Sun Jun 02, 2013 9:59 am    Post subject: проблема с определение кодировки Reply with quote

Помогите определить кодировку...

Code:
^Z^P^]^P^U^R^P ^\^P ^X/ ^X^^!^X$^^^R^]^P,^_^P


или такое уже не прочитать?
В консоли вижу русские символы, с локалью проблем нет.
Эти русские каракули из mdb базы извлек при помощи mdbtools.
В ooo3 не смог аксесс открыть.
С перлом что-то тоже не вышло выбрать dsn.

Code:
#!/usr/bin/perl
use strict;
use warnings;
use DBI;
#  my $DSN = 'driver=Microsoft Access Driver(*.mdb);dbq=/usr/src/base.mdb';
#  my $msdb = DBI->connect("dbi:ODBC:$DSN", '','') or die "$DBI::errstr\n";
my $msdb = DBI->connect('dbi:ODBC:DSN=driver={Microsoft Access Driver (*.mdb)};dbq=/usr/src/base.mdb');
my $result;
 eval { $result = $msdb->do( "select * from atable;", undef, undef ); } or $result = 0;

  print "RESULT: $result \n";

или с dsn подскажите?!
Back to top
View user's profile Send private message
smk
Tux's lil' helper
Tux's lil' helper


Joined: 31 May 2007
Posts: 80
Location: SPB

PostPosted: Sun Jun 02, 2013 7:37 pm    Post subject: Reply with quote

Это не похоже на символы иной кодировки, больше похоже на не расшифрованный кусок файла.
Лучше опишите подробнее проблему - что произошло с файлом, что из него нужно достать.
_________________
USE --force, Luke
Back to top
View user's profile Send private message
syn0ptik
Apprentice
Apprentice


Joined: 09 Jan 2013
Posts: 267

PostPosted: Mon Jun 03, 2013 4:57 am    Post subject: Reply with quote

нет, файл в формате cvs есть числа, а есть столбец с русскими крякозяблами.
Back to top
View user's profile Send private message
Pinkbyte
Developer
Developer


Joined: 01 Jun 2012
Posts: 128
Location: Rostov-on-Don, Russia

PostPosted: Fri Jun 21, 2013 10:47 am    Post subject: Re: проблема с определение кодировки Reply with quote

syn0ptik wrote:
Помогите определить кодировку...


Что говорит enca, если подать ей это на вход? Только не копировать/вставить - а именно подать на вход через конвейер.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Russian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum