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

Surpport the different character encodings for lyrics files. #424

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Surpport the different character encodings for lyrics files. #424

wants to merge 2 commits into from

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.

None yet

1 participant