Article View: pl.comp.lang.perl
Article #52242UTF8 w systemie
From: Mateusz Szczyrzyca
Date: Tue, 07 Jun 2011 14:36
Date: Tue, 07 Jun 2011 14:36
59 lines
1950 bytes
1950 bytes
Mam mały problem, zdawało mi się do tej pory, że w systemie utf8 mam dobrze skonfigurowany. Teraz już nic nie wiem. #v+ $ cat testek Żążółć gęstą jaźń [06-06-2011] [16:30:11] [mateusz@mateusz] [/home/mateusz] $ file testek testek: UTF-8 Unicode text #v- Pliki edytuję vimem, więc: #v+ $ grep utf .vimrc set fileencodings=utf-8 set encoding=utf-8 #v- A ponadto: #v+ $ locale LANG= LC_CTYPE="pl_PL.UTF-8" LC_NUMERIC="pl_PL.UTF-8" LC_TIME="pl_PL.UTF-8" LC_COLLATE="pl_PL.UTF-8" LC_MONETARY="pl_PL.UTF-8" LC_MESSAGES="pl_PL.UTF-8" LC_PAPER="pl_PL.UTF-8" LC_NAME="pl_PL.UTF-8" LC_ADDRESS="pl_PL.UTF-8" LC_TELEPHONE="pl_PL.UTF-8" LC_MEASUREMENT="pl_PL.UTF-8" LC_IDENTIFICATION="pl_PL.UTF-8" LC_ALL=pl_PL.UTF-8 #v- I prosty skrypt pisany w tym vimie w tych locales: #v+ $ cat test.pl #!/usr/bin/perl -w use strict; use warnings; use utf8; use locale; print "Zażółć gęstą jaźń\n"; $ ./test.pl Wide character in print at ./test.pl line 8. Zażółć gęstą jaźń #v- Oczywiście to wszystko z/bez `use utf8` i/lub `use locale` Ten warning od perla psuje mi skrypt CGI, zatem: co tu jest źle? Serio to nie jest w utf8?
Technical Details
Message-ID:
<slrniusdri.pho.mateusz@jabber.abstynenci.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.onet.pl!.POSTED!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.onet.pl!.POSTED!not-for-mail From: Mateusz Szczyrzyca <mateusz@abstynenci.pl> Newsgroups: pl.comp.lang.perl Subject: UTF8 w systemie Date: Tue, 7 Jun 2011 14:36:34 +0000 (UTC) Organization: http://onet.pl Lines: 59 Message-ID: <slrniusdri.pho.mateusz@jabber.abstynenci.pl> Reply-To: Mateusz Szczyrzyca <mateusz@abstynenci.pl> NNTP-Posting-Host: ip-85-198-255-103.broker.com.pl Mime-Version: 1.0 X-Trace: news.onet.pl 1307457394 9736 85.198.255.103 (7 Jun 2011 14:36:34 GMT) X-Complaints-To: niusy@onet.pl NNTP-Posting-Date: Tue, 7 Jun 2011 14:36:34 +0000 (UTC) User-Agent: slrn/0.9.9p1 (Linux) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit