Seite 1 von 1

Wrong encoding when showing filesystem

Verfasst: Mo 25. Mai 2009, 11:09
von chaostya
MyPhoneExplorer Version 1.7.2
Sony Ericsson W890i with Ukrainian language set.
When I open Files I see strange folder names:

\41A430440442430 43F43043C'44F442456\
\41F43043C'44F44244C 200B44243543B43544443E43D443\

Which look like character codes for ukrainian letters.
\41A 430 440 442 430 43F 430 43C ' 44F 442 456\
\К а р т а П а м ' я т і

How can I help to fix it ?

Verfasst: Mo 25. Mai 2009, 11:13
von FJ
MyPhoneExplorer cannot handle unicode-filenames so they get converted into hex. If you set the right codepage on your PC for the Ukrainian language then it should work.

Verfasst: Mo 25. Mai 2009, 11:34
von chaostya
You mean on my PC ?

My Regional Options:
Standarts and formats: English (United States)
Location: Ukraine
Advanced tab->Language for non-Unicode programs: Ukrainian

You meant those settings ?

Verfasst: Mo 25. Mai 2009, 11:39
von FJ
Yes, this settings should be OK.

Is the charset for ukraine the same as for russia ? I think yes, maybe you set the charset for testing purposes to russia (Language for non-Unicode programs:)

Or you can also use AppLocale so you don't have to restart the PC every time: http://www.microsoft.com/globaldev/tools/apploc.mspx

Verfasst: Mo 25. Mai 2009, 12:01
von chaostya
No luck.
Tried using Applocale and setting Regional options to Russian (with restart) both methods failed.
Also tried to set Russian language on my mobile. Same scrambled file names in MyPhoneExplorer.

Verfasst: Mo 25. Mai 2009, 12:04
von chaostya
With russian set on mobile names are slightly different:
\41A430440442430 43F43043C44F442438\
\41F43043C44F44244C 44243543B43544443E43D430\

Looks like russian names for Card memory and Phone memory.

Verfasst: Mo 25. Mai 2009, 12:57
von FJ
Can you type/send ukrainian text in the window "New message" ?

Verfasst: Mo 25. Mai 2009, 13:30
von chaostya
Yes. Here's a proof:

Bild

Verfasst: Mo 25. Mai 2009, 14:02
von chaostya
MPE debug log:

15:53:44.87 OBEX GetFolderListing
15:53:44.87 [TX]: 83 00 1C 42 00 19 78 2D 6F 62 65 78 2F 66 6F 6C 64 65 72 2D 6C 69 73 74 69 6E 67 00
15:53:44.92 [RX]: A0 01 52 CB 00 00 00 06 49 01 4A 3C 3F 78 6D 6C 20 76 65 72 73 69 6F 6E 3D 22 31 2E 30 22 20 65 6E 63 6F 64 69 6E 67 3D 22 55 54 46 2D 38 22 3F 3E 0D 0A 3C 21 44 4F 43 54 59 50 45 20 66 6F 6C 64 65 72 2D 6C 69 73 74 69 6E 67 20 53 59 53 54 45 4D 20 22 6F 62 65 78 2D 66 6F 6C 64 65 72 2D 6C 69 73 74 69 6E 67 2E 64 74 64 22 3E 0D 0A 3C 21 2D 2D 0D 0A 20 58 4D 4C 20 43 6F 64 65 72 2C 20 28 43 29 20 32 30 30 31 20 53 6F 6E 79 20 45 72 69 63 73 73 6F 6E 20 4D 6F 62 69 6C 65 20 43 6F 6D 6D 75 6E 69 63 61 74 69 6F 6E 73 20 41 42 20 0D 0A 2D 2D 3E 0D 0A 3C 66 6F 6C 64 65 72 2D 6C 69 73 74 69 6E 67 20 76 65 72 73 69 6F 6E 3D 22 31 2E 30 22 3E 3C 66 6F 6C 64 65 72 20 6E 61 6D 65 3D 22 D0 9F D0 B0 D0 BC 26 61 70 6F 73 3B D1 8F D1 82 D1 8C 20 E2 80 8B D1 82 D0 B5 D0 BB D0 B5 D1 84 D0 BE D0 BD D1 83 22 2F 3E 0D 0A 3C 66 6F 6C 64 65 72 20 6E 61 6D 65 3D 22 D0 9A D0 B0 D1 80 D1 82 D0 B0 20 D0 BF D0 B0 D0 BC 26 61 70 6F 73 3B D1 8F D1 82 D1 96 22 2F 3E 0D 0A 3C 2F 66 6F 6C 64 65 72 2D 6C 69 73 74 69 6E 67 3E 0D 0A

Which translates into:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE folder-listing SYSTEM "obex-folder-listing.dtd">
<!--
XML Coder, (C) 2001 Sony Ericsson Mobile Communications AB
-->
<folder-listing version="1.0"><folder name="Пам&apos;ять ​телефону"/>
<folder name="Карта пам&apos;яті"/>
</folder-listing>

As I said: "Пам'ять телефону" and "Карта пам'яті" are ukrainian translations for Phone memory and Card memory.

Verfasst: Mo 25. Mai 2009, 17:23
von FJ
OK, i could reproduce the problem on my PC. It seems that there was a bug in the conversationroutine. It worked correct if all settings were set to russian, but for ukrainian languagesettings it worked not as it should. Please try it with the current beta and tell me if its working now.

Verfasst: Di 26. Mai 2009, 13:42
von chaostya
Tried beta.
Nice, thank you very much. Didn't expected you to fixed that so quickly.

But there's still a small issue.
200B character. Looks like this: Bild
According to http://www.fileformat.info/info/unicode ... /index.htm I would suggest you simply strip it from string when showing it.

Verfasst: Di 26. Mai 2009, 15:03
von FJ
Thank you for this tip, i will strip it of (with the next official update)