Turnign greek-iso filenames => utf-8 iso

Steven D'Aprano steve+comp.lang.python at pearwood.info
Wed Jun 12 05:37:21 EDT 2013


On Wed, 12 Jun 2013 12:24:24 +0300, Νικόλαος Κούρας wrote:

> On 12/6/2013 12:17 μμ, Steven D'Aprano wrote:
>> On Wed, 12 Jun 2013 12:00:38 +0300, Νικόλαος Κούρας wrote:
>>
>>> On 12/6/2013 11:31 πμ, Steven D'Aprano wrote:
>>>> On Wed, 12 Jun 2013 08:02:24 +0000, Νικόλαος Κούρας wrote:
>>
>>>>> and the output is just Pacman.exe as seen in
>>>>>
>>>>> http://superhost.gr/?page=files.py

Νικόλαος, look at the URL you have given me. It still fails. I have 
tested it repeatedly.[1]


Now look at this URL:

http://superhost.gr/data/apps/

Notice that it is a different URL? That one works and shows the file 
listing.

Also, you need to include an encoding line in the page, otherwise people 
viewing it will see mojibake. You need a line like:

<meta charset="UTF-8" />

in the generated HTML.



[1] Correction. While I was typing this, it came good, for about 20 
seconds, and displayed a hideously ugly background pattern and a cute 
smiling face waving, and then broke again.



-- 
Steven



More information about the Python-list mailing list