Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  playlist format UTF8 vs ASCII
« previous next »
  • Print
Pages: [1] 2

Author Topic: playlist format UTF8 vs ASCII  (Read 5077 times)

Offline nieroster

  • Member
  • *
  • Posts: 61
playlist format UTF8 vs ASCII
« on: October 04, 2006, 04:11:16 PM »
Winamp uses another file extension for UTF8-playlists (.m3u8)

Why doesn't Rockbox use the same file extensions to distinguish between ASCII (.m3u) and UTF8 (.m3u8) formatted playlists?

It would be nice to have a compatibility mode to read old playlists.
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: playlist format UTF8 vs ASCII
« Reply #1 on: October 04, 2006, 04:42:49 PM »
because Rockbox switched to utf-8 and playlists use Rockbox' encoding, which is utf-8. Recently the extension m3u8 got added for utf-8 encoded playlists. There was some discussion about changing this but it hasn't been addressed yet.

Converting a playlist isn't really hard.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline nieroster

  • Member
  • *
  • Posts: 61
Re: playlist format UTF8 vs ASCII
« Reply #2 on: October 04, 2006, 04:54:43 PM »
The problem is if I leave the extension to m3u Winamp doesn't read the playlist correctly anmore.

But if I have to change the extension anyway why not let Rockbox read all the "old" playlists in ASCII?
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: playlist format UTF8 vs ASCII
« Reply #3 on: October 04, 2006, 06:56:01 PM »
because nobody has implemented it yet?
Talking of pure ASCII playlists: the lower part of ASCII (i.e. up to 0x7f) is identical for utf-8 and ASCII. So as long as you don't use any extended characters (like umlauts) in your filenames there is no difference, and winamp should read those files without any problem. Possibly Winamp breaks because Rockbox uses a / as path delimiter, but that's a different story. In that case, try the iriverify plugin.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline heze

  • Member
  • *
  • Posts: 35
Re: playlist format UTF8 vs ASCII
« Reply #4 on: October 05, 2006, 02:22:05 AM »
Quote from: bluebrother on October 04, 2006, 06:56:01 PM
because nobody has implemented it yet?
...

If so, why did it work until months ago?
That means, it already was implemented, but was removed. Why?
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: playlist format UTF8 vs ASCII
« Reply #5 on: October 05, 2006, 02:38:09 AM »
Quote from: heze on October 05, 2006, 02:22:05 AM
That means, it already was implemented, but was removed. Why?
It wasn't removed. It was never there! Period.

As I already said, if there are no characters outside of ASCII in your filenames there is no difference. So for most users there shouldn't be any difference. And, please read my first post in this thread. Why are you claiming thing that aren't true?  >:(
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline LinusN

  • Member
  • *
  • Posts: 1914
Re: playlist format UTF8 vs ASCII
« Reply #6 on: October 05, 2006, 03:09:24 AM »
Well, Rockbox was able to handle umlauts in playlists before the unicode change. So he is telling the truth.
Logged
Archos Jukebox 6000, Recorder, FM Recorder/iAudio X5/iriver H1x0, H3x0/Toshiba Gigabeat F20/iPod G5, G5.5

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: playlist format UTF8 vs ASCII
« Reply #7 on: October 05, 2006, 03:17:30 AM »
I don't think so. The codepage was changed, so the playlists encoding changed too. He told something was removed, but there wasn't anything removed -- the encoding was changed. Which is different IMO.
Also, using umlauts in playlists still works (I have such playlists myself!) -- they only need to have a different encoding (namely utf-8).
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline heze

  • Member
  • *
  • Posts: 35
Re: playlist format UTF8 vs ASCII
« Reply #8 on: October 05, 2006, 04:28:59 AM »
Quote from: LinusN on October 05, 2006, 03:09:24 AM
Well, Rockbox was able to handle umlauts in playlists before the unicode change. So he is telling the truth.


Right! This statement confirms my logic:

Rockbox of September 2005: m3u-playlists with umlauts work fine!
Rockbox of October 2006: they have to get converted now.

Is it so difficult, to support both kinds of encoding?
Logged

Offline markun

  • Developer
  • Member
  • *
  • Posts: 462
Re: playlist format UTF8 vs ASCII
« Reply #9 on: October 05, 2006, 04:43:03 AM »
I'm working on it
Logged

Offline heze

  • Member
  • *
  • Posts: 35
Re: playlist format UTF8 vs ASCII
« Reply #10 on: October 05, 2006, 05:28:49 AM »
I'm looking forward, markun! Thank you very much.

When do you think is this feature available (again)?
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: playlist format UTF8 vs ASCII
« Reply #11 on: October 05, 2006, 07:02:25 AM »
Quote from: heze on October 05, 2006, 04:28:59 AM
Right! This statement confirms my logic:

Rockbox of September 2005: m3u-playlists with umlauts work fine!
Rockbox of October 2006: they have to get converted now.
Strange logic.
I'm running my linux box utf-8 only since some years now, which also results in e.g. xmms (the linux counterpart to winamp) to produce utf-8 playlists. Which means:
- Rockbox of Sep 2005: playlist with umlauts work fine. Files use latin encoding
- Rockbox of Oct 2006: playlists with umlauts work fine. Files use utf-8 encoding
So telling "they have to be converted" isn't completely correct -- my playlists (that were utf-8 before) needed to get converted until utf-8 was implemented. "They have to be converted" doesn't apply in all cases, so this isn't completely true. It all depends on the local encoding you're using (try opening a utf-8 file with notepad, which can't handle utf-8). Text files don't have any information about their encoding attached so a text file could be any encoding.
I'd rather say "Playlists need to be in the correct encoding to use characters outside of ASCII".

I disagree with LinusN as Rockbox is still able handling umlauts in playlists. The problem is simply that there is an assumption of the encoding. Which doesn't match in every case.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline heze

  • Member
  • *
  • Posts: 35
Re: playlist format UTF8 vs ASCII
« Reply #12 on: November 27, 2006, 06:53:33 AM »
Quote from: markun on October 05, 2006, 04:43:03 AM
I'm working on it

Hi markun,

how are the things now? Did you solve it?

Sorry, I did not check out a newer build...

Thanks.
Logged

Offline markun

  • Developer
  • Member
  • *
  • Posts: 462
Re: playlist format UTF8 vs ASCII
« Reply #13 on: November 28, 2006, 03:07:08 AM »
Sorry, I didn't finish the code yet. First I wrote it in the wrong place (wrong functions) and then I got too busy with the rockbox port to the Toshiba Gigabeat (still am)

I still have the code and should give it another go soon.
Logged

Offline Lear

  • Developer
  • Member
  • *
  • Posts: 533
Re: playlist format UTF8 vs ASCII
« Reply #14 on: November 28, 2006, 05:19:52 PM »
I've just written something that looks promising in the simulator (that's why I asked you about iso_decode on IRC :) ), and I should be ready to commit it in a few days, once I've had the chance to test it on target.
Logged

  • Print
Pages: [1] 2
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  playlist format UTF8 vs ASCII
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.107 seconds with 15 queries.