You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found the filename length issue still exists when processing long titles in CJK languages.
#31 createFilename() in class FileNameUtils uses string.length() to ensure the file name is less than 127. However, when the title is in CJK language in UTF-8 format, length() checks the number of characters instead of bytes. Although the CJK title may be of less than 127 characters, the number of bytes it occupies could exceed 255.
Perhaps String.getBytes().length be to used but with proper truncation of UTF-8 string?
Thanks
The text was updated successfully, but these errors were encountered:
I found the filename length issue still exists when processing long titles in CJK languages.
#31 createFilename() in class FileNameUtils uses string.length() to ensure the file name is less than 127. However, when the title is in CJK language in UTF-8 format, length() checks the number of characters instead of bytes. Although the CJK title may be of less than 127 characters, the number of bytes it occupies could exceed 255.
Perhaps String.getBytes().length be to used but with proper truncation of UTF-8 string?
Thanks
The text was updated successfully, but these errors were encountered: