🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.ruby
Article #172

Re: Polskie znaki z pliku... dlaczego np. "\304\231"...

#172
From: Marcin Mielżyński
Date: Wed, 30 Aug 2006 21:46
13 lines
1134 bytes
np:

require 'iconv'

require 'rubygems'
require_gem 'chardet'

s = "\305\233\304\207"
puts 
Iconv.new('iso-8859-2',UniversalDetector::chardet(s)['encoding']).iconv(s)


lopex
Technical Details
Message-ID: <ed510m$i07$1@news.onet.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!newsfeed.silweb.pl!news.onet.pl!not-for-mail
References: <1156972332.627718.266720@h48g2000cwc.googlegroups.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!newsfeed.silweb.pl!news.onet.pl!not-for-mail
From: Marcin Mielżyński <lopx@gazeta.pl>
Newsgroups: pl.comp.lang.ruby
Subject: Re: Polskie znaki z pliku... dlaczego np. "\304\231"...
Date: Wed, 30 Aug 2006 23:46:58 +0200
Organization: Onet.pl
Lines: 13
Message-ID: <ed510m$i07$1@news.onet.pl>
References: <1156972332.627718.266720@h48g2000cwc.googlegroups.com>
NNTP-Posting-Host: chello087207016023.chello.pl
Mime-Version: 1.0
X-Trace: news.onet.pl 1156974423 18439 87.207.16.23 (30 Aug 2006 21:47:03 GMT)
X-Complaints-To: usenet@news.onet.pl
NNTP-Posting-Date: Wed, 30 Aug 2006 21:47:03 +0000 (UTC)
X-Sender: 5Da2qcG7AWj7WISFX859Php/OS6q4VnB
In-Reply-To: <1156972332.627718.266720@h48g2000cwc.googlegroups.com>
User-Agent: Thunderbird 1.5.0.5 (Windows/20060719)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit