ryanqq / aacdecoder-android

Automatically exported from code.google.com/p/aacdecoder-android
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Wrong decoding of special characters in meta data #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Displaying received meta data including special characters (like öäü).

What version of the product are you using? On which device ?
r21 on galaxy s 1 (android 2.3.6)

What is the URL of the stream ?
http://mobil.metal-only.de:8000

Please provide any additional information below.
I think the following solution works:
replacing
s = new String( mbuffer, 0, size, "UTF-8" );
with
s = new String( mbuffer, 0, size, "ISO-8859-1" );
in decoder/src/com/spoledge/aacdecoder/IcyInputStream.java

I didn't test this with other radio stations.

Original issue reported on code.google.com by rbrts...@gmail.com on 12 Apr 2013 at 7:17

GoogleCodeExporter commented 9 years ago
I've committed revision 24 into trunk.
Now you can pass the expected character encoding of the metadata strings to the 
player/stream wrapper.
I've not found any standardization document about this. so I suppose this 
solution is the best one.

Original comment by vbarta...@gmail.com on 29 May 2013 at 2:52

GoogleCodeExporter commented 9 years ago
Thank you :).

Original comment by rbrts...@gmail.com on 29 May 2013 at 8:08