I have a lot of troubles with Tk and internationalization on Linux and Windows with Perl. In Windows I use StrawberryPerl.
1. For Unix you must use Unicode and all must be normal, but for filenames you will have problems. Tk use as standard iso-8859 codepage(if I remember this number) for filenames. And if you need use UTF-8 then you must get problems. Filedialog from Tk work wrong with UTF-8 filenames. This was my bigest problem with Tk. It show in dialog utf-8 filenames as ???. I must create my own filedialog with UTF-8.
2. All methods from Tk work with latin codepage and can't open utf-8 filenames(method Photo as example). For this methods I create subroutine for translate name to latinic filename and use in Photo latinic filename.
3. In Windows filename codepage use ONLY national codepage. For example: for cyrylic filenames it must be cp1251(if Windows MUI is cyrylic)...
4. For data in filenames I use utf-8 and you must keep in mind this and encode data if this need. Also Windows use CrLf ending of line. In Unix only Cr.
Mostly my questions on PerlMonks was about codepages in Tk and others about internationalizations. You can see my profile and read all about this theme in my feeds...
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.