Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Database vs XML output representation of two-byte UTF-8 character

by jkeenan1 (Deacon)
on Sep 06, 2014 at 12:31 UTC ( #1099752=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ABC»DEF abc»def
    
  2. or download this
    c2 bb
    
  3. or download this
    $ echo 'ABC»DEF abc»def' | hexdump -C
    00000000  41 42 43 c2 bb 44 45 46  20 61 62 63 c2 bb 64 65  |ABC..DEF 
    +abc..de|
    00000010  66 0a                                             |f.|
    00000012
    
  4. or download this
    # $res: HTTP::Response object
    # $tx:  Test::XPath object
    ...
    $funny_name = 'ABC»DEF abc»def';
    
    $tx->is('/result/entity/prop[@name="name"]/@value',
    $funny_n
    +ame,
    "Got name '$funny_name'") or diag($res->content);
    
  5. or download this
    diag($res->content);
    
  6. or download this
    #    <prop name="name" value="ABC»DEF abc»def" />
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1099752]
Approved by Eliya
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2021-03-02 08:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (41 votes). Check out past polls.

    Notices?