GithubHelp home page GithubHelp logo

Comments (6)

Wikinaut avatar Wikinaut commented on May 26, 2024

Info: this problem is still present in 0.14.6

from radiodroid.

segler-alex avatar segler-alex commented on May 26, 2024

this is a harder bug to fix than it looks :(
the http standard allows only ASCII characters. (basic ASCII)
JAVA does use UTF8, which some standards say is a good solution. but some german radio stations do use ISO 8859-1
i tried to reimplement the whole http request with low level sockets. which works, but maybe there are radio stations out there, which use UTF-8....
this is bad, there is no real solution which works for all. at least as far as i can see it :(
it would be interesting to know how for example japanese or chinese stations do their encoding.

from radiodroid.

segler-alex avatar segler-alex commented on May 26, 2024

i think different phones do behave differently because of different java versions inside. at the moment i use pure java API to get the strings for the radio station name. so that means, some android versions do it one way, some do it the other way.... :(

from radiodroid.

Wikinaut avatar Wikinaut commented on May 26, 2024

thanks so far for your efforts.

from radiodroid.

pvagner avatar pvagner commented on May 26, 2024

I think UTF-8 should become the default sooner than later. Latest versions of icecast and shoutcast are defaulting to UTF-8 I guess.
Then for known older versions we should fall back to iso-8859-1 if this will persist and no better solution will be found.
It'll be additional extra work trying to identify those older servers inspecting their ICY headers, however hopefully there is a way.
I am just going through the code to have better understanding on how this is currently implemented.
I know people building desktop apps such as VLC or Foobar 2000 are facing similar issues.

from radiodroid.

Wikinaut avatar Wikinaut commented on May 26, 2024

see #241

from radiodroid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.