Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Surpport the different character encodings for lyrics files.#424

Open
binzhong wants to merge 2 commits intokarimknaebel:masterfrom
binzhong:master
Open

Surpport the different character encodings for lyrics files.#424
binzhong wants to merge 2 commits intokarimknaebel:masterfrom
binzhong:master

Conversation

@binzhong
Copy link

@binzhong binzhong commented Jan 29, 2018

APP display all lyrics without processing the character encodings, that result in APP displayed unrecognized charater if the lyrics file with non-default(utf8) encoding.
This commit surpport the different character encodings of lyrics files with juniversalchardet.

…h utf8 and gb18030(chinese)) with juniversalchardet.

Add library : com.googlecode.juniversalchardet:juniversalchardet:1.0.3
Add functions:
class FileUtil:
 String readWithCharsetDet(InputStream);
 String readFromStream(InputStream,Charset);
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant