Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^3: XML::Smart - undesired decoding of special XML characters

by roboticus (Chancellor)
on Oct 16, 2017 at 15:32 UTC ( [id://1201456]=note: print w/replies, xml ) Need Help??


in reply to Re^2: XML::Smart - undesired decoding of special XML characters
in thread XML::Smart - undesired decoding of special XML characters

NeedForPerl:

I just checked your code with Your Mother's recommendation and it worked just fine. I did, however, have to remove the ä symbol because XML::Smart complained about it being encoded incorrectly. After that, and changing 'FALSE' to 0, it gave me (the presumably expected):

<?xml version="1.0" encoding="UTF-8" ?> <?meta name="GENERATOR" content="XML::Smart/1.78 Perl/5.022004 [cygwin +]" ?> <log> <logentry revision="12345"> <author>someAuthor</author> <date>2017-10-11T09:32:15.704935Z</date> <msg>This is my SVN message with characters like or &amp;.</msg> </logentry> </log>

I could easily have something munged in my various Windows/Cygwin/vim settings to have messed up the 'ä', but I'm mentioning it just in case you need to know of it.

...roboticus

When your only tool is a hammer, all problems look like your thumb.

Replies are listed 'Best First'.
Re^4: XML::Smart - undesired decoding of special XML characters
by NeedForPerl (Novice) on Oct 16, 2017 at 16:44 UTC

    Thank you. Everything works fine. I have no problems with the "ä".

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1201456]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-20 04:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found