Great explanation, you have put very simply the idea behind encoding and iw as abel to understand it at once and because its very simple i can remember it for a life as well!

Perl CGI Source code (one huge string, aks repettition of characters --> Produced HTML data out of cgi.pm's html generating functions and Web servers help) --> Encoding UTF-8(aka conversion of chars to bytes) --> Web --> Encoding(conversion from bytes to chars) -> Pure HTML data recived by the cleints browser

This is how i understand the whole process after your explanation.

I have web space on freehostia but you can have it form my pc by accessing http://nikos.no-ip.org/data/vault/problem.txt wher i placed it for you to grasp it. I wonder though i i dint renamed it to problem.txt if you would still be able to grab it under name index.pl. There is a fear as you say that unintententionally the web server try to execute this but i dotn think so because it sint inside the 'cgi-bin' folder so for the web server to treat it specially so maybe index.pl could be downloaded as a simpel document.

Anyway, i have uploaded it and i thank you for the explanation and willingness to try to convert it, i dont really now how it ended like this mess, but from now an on i will only use gridinsoft notepad to edit files and not dzsoft perl editor as well because messes like thsi happened.

One think i want to ask though is why when i save myu perl file on gridinsoft notepad as 'utf-8' and then when i immediately open them with dzsoft perl edit i see a BOM header before the shebang line where it has 3-4 chars in front? This onyl happend if i try to save my files in notepad as utf8. Maybe you cna enlight me to that too.


In reply to Re^4: Encoding changed from Greek to somethign else by Nik
in thread Encoding changed from Greek to somethign else by Nik

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.