Article View: pl.comp.lang.perl
Article #52547Re: SOAP::Lite i problem z kodowaniem
From: Giz
Date: Thu, 01 Aug 2013 09:36
Date: Thu, 01 Aug 2013 09:36
29 lines
1755 bytes
1755 bytes
> A co przekazujesz do SOAP::Lite? Bajtstringi czy tekst w wewnętrznym > kodowaniu Perla? (To znaczy: używasz pragmy encoding?) > #v+ > $ perl -mencoding=utf8 -e '$char = substr "ą", 0, 1; $code = ord $char; > printf "0x%02x\n", $code' > 0x105 > $ perl -e '$char = substr "ą", 0, 1; $code = ord $char; printf "0x%02x\n", > $code' > 0xc4 > #v- > -- > Secunia non olet. > Stanislaw Klekot Nieznam się zbytnio na tym o czym piszesz. Poniżej wklejam wynik tego co podałeś $ perl -mencoding=utf8 -e '$char = substr "ą", 0, 1; $code = ord $char; printf "0x%02x\n", $code' Malformed UTF-8 character (unexpected continuation byte 0xb1, with no preceding start byte) at -e line 1. 0x00 $ perl -e '$char = substr "ą", 0, 1; $code = ord $char; printf "0x%02x\n", $code' 0xb1 Pozdr G
Technical Details
Message-ID:
<ktda68$778$1@news.task.gda.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!news.task.gda.pl!not-for-mailReferences:
<ktd6pd$uie$1@news.task.gda.pl> <slrnkvk9co.91q.dozzie@jarowit.net>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!news.task.gda.pl!not-for-mail From: "Giz" <giz@nospam.pl> Newsgroups: pl.comp.lang.perl Subject: Re: SOAP::Lite i problem z kodowaniem Date: Thu, 1 Aug 2013 11:36:13 +0200 Organization: CI TASK http://www.task.gda.pl/ Lines: 30 Message-ID: <ktda68$778$1@news.task.gda.pl> References: <ktd6pd$uie$1@news.task.gda.pl> <slrnkvk9co.91q.dozzie@jarowit.net> NNTP-Posting-Host: axv251.internetdsl.tpnet.pl Mime-Version: 1.0 X-Trace: news.task.gda.pl 1375349768 7400 83.18.99.251 (1 Aug 2013 09:36:08 GMT) X-Complaints-To: abuse@news.task.gda.pl NNTP-Posting-Date: Thu, 1 Aug 2013 09:36:08 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit