ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> activeperl
activeperl
Re: charsets generally and with lwp
by Bill Luebkert other posts by this author
Oct 21 2009 12:27PM messages near this date
charsets generally and with lwp | Problems with PPM
Hildegard Schedthelm wrote:
>  Hello folks
>  
>  I've some troubles with a perlscript that you can see below.
>  The problem is that some german special characters (umlaut) are not 
>  displayed as
>  they should be. This seems to be an encoding-issue. Either the internal
>  perl variables have the wrong encoding or the lwp-module when grapping 
>  the html?
>  Additional the output to write the data into the MS-Access DB can also 
>  have the
>  incorrect encoding. How can we fix the uncertainty? What can I do to 
>  ensure the
>  right encoding in all levels?

Your retrieval part looks ok.  I would just dump the data in hex prior
to insertion in the DB and verify it's what you want.  That just leaves
the DB if all is well going in.  If the DB is converting it, you could
consider your own conversion on entry and exit to the DB if you're also
using Perl to query the DB - if not, and there is some conversion going
on going into the DB I would check ODBC for options that may alleviate
the problem.  (I haven't played with ODBC much.)

_______________________________________________
ActivePerl mailing list
ActivePerl@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Hildegard Schedthelm
Bill Luebkert

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved