... as before, I'm using utf8 or euc encoded strings...

Okay, how do you know when you're using one or the other? Does the web site (play-asia.com) support both encodings, and if so, how do you tell it which one you're using?

ord returns the numeric representation of each byte, not each character. The above gives 6 distinct codes, not 3.

6 numerics instead of 3 for that 3-character string definitely means "not utf8" (so presumably euc, based on what you've said); if the web site is looking for utf8-encoded numerics, you should use Encode to convert from euc to utf8, then use ord():

use Encode; ... my $string = "..."; # wherever you get your euc string from; $string = decode( "euc-jp", $string ); # now it's a utf8 string; ... # plug it into the url as described earlier

What does "rovf" mean, and am I missing your point(s) completely? (sorry-- I just realized that "rovf" was another monk -- moving right along...)

Your descriptions and replies are a bit hard for me to follow. And what do you mean by "the values are actually just HTML representation"? There are numeric character entity references (both decimal and hex, used in HTML, XML, SGML), there are symbolic entity references (like "á"), and there are uri-encoded versions of these (with the punctuation marks converted to "%" followed by two hex digits).

Are you really still having a problem with this?


In reply to Re^5: iso-8859-1 code converter by graff
in thread iso-8859-1 code converter by GaijinPunch

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.