Skip to content
This repository has been archived by the owner on Aug 25, 2020. It is now read-only.

Some stations cause Unicode errors when parsing headers #7

Open
AzureKitsune opened this issue Jan 15, 2017 · 0 comments
Open

Some stations cause Unicode errors when parsing headers #7

AzureKitsune opened this issue Jan 15, 2017 · 0 comments
Labels

Comments

@AzureKitsune
Copy link
Collaborator

AzureKitsune commented Jan 15, 2017

A station named Conect Rádio 64k AAC
(http://142.4.222.227:9890/) is causing an exception when connecting due to a Unicode issue.

Exception:
Message: No mapping for the Unicode character exists in the target multi-byte code page.
Stack Trace: None but it comes from this line in ShoutcastMediaSourceManager

while (!response.EndsWith(Environment.NewLine + Environment.NewLine))
{
    await socketReader.LoadAsync(1);
    response += socketReader.ReadString(1);
}

Its possible that #5 will fix this.

@AzureKitsune AzureKitsune changed the title Some stations caused Unicode errors when parsing headers Some stations cause Unicode errors when parsing headers Jan 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant