-
-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify TextUtils.stdDecode() to accept an optional boolean parameter isGBK indicating whether the input is encoded in GBK or UTF-8. If isGBK is true, the method uses the gbk.decode() function to convert the input from byte array to a string, followed by removing escape sequences and extra line breaks with removeEscapeSequences() and removeExtraBreaks(). Otherwise, the method uses utf8.decode() to decode the input. #1
- Loading branch information
1 parent
c8011b2
commit 239361b
Showing
2 changed files
with
13 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters