+ Reply to Thread
Results 21 to 40 of 46
[Release] Meizu Playlist Converter
This is a discussion on [Release] Meizu Playlist Converter within the Technical forums, part of the miniPlayer M6 / SL category; Unique, you should encode text to UTF8. It's a unicode-ish thing, and the first 128 characters are the same as ...
-
01-20-2008 #21Senior Member
- Join Date
- Aug 2007
- Location
- Hungary
- Posts
- 271
- Thanks
- 0
Thanked 0 Times in 0 PostsUnique, you should encode text to UTF8. It's a unicode-ish thing, and the first 128 characters are the same as ASCII, that's why it will work for English, but if you don't do the encoding for UTF8, then the passero described problem may arise.
There should be some function in Python to encode the text as UTF8.
Just ignore this if I said something you already knew
-
01-21-2008 #22
Will look into it, thanks for the advice. But first i gotta get my main PC working again, now i've learned that cheap C2D CPUs are cheap for a reason.
I'm now on my old Portege 4000 lappy and there's not a single line of Python code here, and i don't feel like writing everything from scratch.
-
01-21-2008 #23Junior Member
- Join Date
- Oct 2007
- Posts
- 54
- Thanks
- 0
Thanked 0 Times in 0 PostsNow i've understood what's the problem. It would be fantastic if you could solve it. However, your program is excellent. Many Thanks!
-
01-23-2008 #24Freshman
- Join Date
- Sep 2007
- Posts
- 23
- Thanks
- 0
Thanked 0 Times in 0 PostsWow thank you. I'm gonna try it . :D

-
01-29-2008 #25Stalker
- Join Date
- Jan 2008
- Posts
- 1
- Thanks
- 0
Thanked 0 Times in 0 PostsDo you have the straight Python available? I am using Fedora 8. Python everywhere!
-
01-29-2008 #26
-
04-17-2008 #27Passing By
- Join Date
- Aug 2007
- Location
- Rotterdam, Holland
- Posts
- 3
- Thanks
- 0
Thanked 0 Times in 0 PostsIt works, weeeeeee! Great job dude!
-
05-02-2008 #28
-
05-13-2008 #29
Got my main machine fixed a few months ago, but had some other stuff to do in the meantime.
So is anyone else interested in this project anymore? I don't have my Miniplayer anymore as its USB port broke, but i can keep developing this little app if needed. There were a few more things i wanted to implement.
Python source added to first post. There you can see a very good example of working crappy code.
Last edited by Th3_uN1Qu3; 05-13-2008 at 09:31 AM.
-
05-19-2008 #30Junior Member
- Join Date
- Oct 2007
- Posts
- 54
- Thanks
- 0
Thanked 0 Times in 0 PostsI'm yet interested. I hope you can solve my problem improving the function to encode to UTF8 as Speeder has said:
It would be great, cause now i must edit the playlist after the conversion with notepad, and then manually change the non english characters to make it works.
-
05-19-2008 #31
-
05-20-2008 #32Senior Member
- Join Date
- Aug 2007
- Location
- Hungary
- Posts
- 271
- Thanks
- 0
Thanked 0 Times in 0 PostsActually, unicode is a different thing. It's a table of values-to-characters association with a fixed size. Most often this is a fixed two-byte value.
UTF8 is an... optimization of the unicode system perhaps, with a variable character length. The first 128 characters work just as the ASCII character set. In 1 bytes. More special characters take 2 or 3 bytes length. In most current programing languages/environments, you should be working with unicode strings (Well... no I'm not sure at all
). When you've got a string in your program, you would need to encode it to UTF-8, and then write the encoded data to disk.
Anyways! Point is the point, here's some tutorial for you: How to Use UTF-8 with Python
Google is a programer's best friend
.wysiwyg { background-attachment: scroll; background-repeat: repeat; background-position: 0% 0%; background-color: #f5f5ff; background-image: none; color: #000000; font-family: Verdana, Arial, Arial; font-style: normal; font-variant: normal; font-weight: 400; font-size: 10pt; line-height: normal } p { margin: 0px; }
Last edited by Speeder; 05-20-2008 at 09:18 AM.
-
05-21-2008 #33
Thanks for the link, but i had read that already. And it doesn't work.
Trying to read the playlist file with codecs.open only brings garbage, garbage and more garbage.
Because the english playlist file, with no special characters, is saved in ASCII. UTF-8 uses different representations for everything, therefore reading an ASCII file in UTF-8 makes a really big mess. I've tried.
The alternative would be detection of the charset on file open and running the appropriate code. I'll have to double the number of lines of already craptacular code. Great.
Last edited by Th3_uN1Qu3; 05-21-2008 at 05:17 PM.
-
05-22-2008 #34Senior Member
- Join Date
- Aug 2007
- Location
- Hungary
- Posts
- 271
- Thanks
- 0
Thanked 0 Times in 0 Postsuuuummmm... All UTF-8 files have a special leading marker that shows that's a UTF-8 encoded file.
To be precise, it is the character sequence: "".
(UTF-16's sequences are FFFE or FFEF, depending on what order the bytes are in 1-1 character - big endian or little endian)
As for getting garbage... hhhmmmmm... Sounds like something's not good. All English characters and numbers should be the same in ASCII and UTF-8.
UTF-8 - Wikipedia, the free encyclopedia
P.S.: Error, I'm using Opera, why's it always adding asterisks into my messages and that strange wysiwyg css tag? I use both the quite and advanced post editors and still. Only when I edit my post..wysiwyg { background-attachment: scroll; background-repeat: repeat; background-position: 0% 0%; background-color: #f5f5ff; background-image: none; color: #000000; font-family: Verdana, Arial, Arial; font-style: normal; font-variant: normal; font-weight: 400; font-size: 10pt; line-height: normal } p { margin: 0px; }Last edited by Speeder; 05-22-2008 at 09:27 AM.
-
05-22-2008 #35
I'm using Opera too. Not getting any weird chars inserted. Are you using the beta version? If you are, revert to the stable release.
-
05-23-2008 #36Senior Member
- Join Date
- Aug 2007
- Location
- Hungary
- Posts
- 271
- Thanks
- 0
Thanked 0 Times in 0 PostsI'm using 9.26.
-
05-23-2008 #37
9.27 here.
-
06-10-2008 #38
I'm still fighting computer trouble so i can't do much about this piece of software right now.
My THIRD 8600GT video card just died, and i got tired of going to the store to get it replaced under warranty and running 2 weeks on my old crappy X300SE, so i bought a HD3870 today. It keeps hanging in games, may be DoA. Crap...
-
06-11-2008 #39Stalker
- Join Date
- Jun 2008
- Posts
- 1
- Thanks
- 0
Thanked 0 Times in 0 PostsDoes this converter work for converting windows media player playlists?
-
06-15-2008 #40
As long as you choose M3U in the Save As box when you save your playlist, yes.
News: I've bought a Seasonic power supply as i thought my old Spire was the problem as it was getting very hot, still no go. Will bring the HD3870 back to the store on Monday... But recent testing reveals it's probably the RAM. Errors in the last megabyte of the 2GB, that explains why i don't get any problems in windows or smaller games. Well, RAM is cheap.
I've started work on unicode support, i got the files to read something else than garbage but i'm stuck. Some of the commands i used to read the files (ie: readlines()) don't work properly in Unicode. Anyone care to explain why?Last edited by Th3_uN1Qu3; 06-17-2008 at 11:13 PM.
Similar Threads
-
How do you organize playlist in the Meizu M6
By newbielives in forum General ChatReplies: 16Last Post: 02-26-2008, 06:56 PM -
Meizu m8 Release Date
By Kasaki in forum General Meizu M8Replies: 9Last Post: 11-27-2007, 03:53 PM -
Meizu To Release Speaker Dock For M6
By Err0r in forum Meizu NewsReplies: 23Last Post: 09-11-2007, 11:32 AM -
meizu release dates
By moogle301 in forum General Meizu M6Replies: 4Last Post: 05-05-2007, 08:52 PM -
8GB M6 on March 1st, Meizu M3 Release Shaky
By Err0r in forum Meizu NewsReplies: 66Last Post: 03-26-2007, 06:32 PM



Reply With Quote

