Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

jk2addict (4946)

jk2addict
  (email not shown publicly)
http://today.icantfocus.com/blog/
AOL IM: chrislaco (Add Buddy, Send Message)
Yahoo! ID: chrislaco@sbcglobal.net (Add User, Send Message)
Jabber: laco@scribblewerks.com

Journal of jk2addict (4946)

Thursday November 01, 2007
02:06 PM

Forgotten Solutions: Blocking out the pain.

[ #34812 ]

Ever solve a problem that was so painful you just blocked it out of your memory? :-)

I had one of those moments today. One of my co$workers was having problems with an XML file on win32 that he was getting from an HP system. Then the painful memories kicked in, and once I revisited the solution I had 2 years ago, I can't believe I ever figured it out [with the help of some Googlers as well].

The issue then was that the web took in latin encoded posts, and we were sending that buffer over the network to a main system that lived and breathed HPRoman8. Whilst in .NET 1.1, there was no native way to convert, so I worked together a character map of utf->hproman8 and an Encoding class for .NET so I could map data on the way out.

All because of some people with diacritic marks in their names. :-)

Now that I know WHY the XML file is broken, hopefully we can convince MSXML to do our bidding.

I've said it before, and I'll say it again. There are three things that O loathe in this world of programming: codepages/encodings, time/zone conversions, and USPS/ISO country code issues.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.