Heyuri/kokonotsuba

Japanese characters in the filename

Closed this issue · 3 comments

If a filename is all Japanese characters, it shows the UNIX timestamp the post is being submitted instead of the filename.
If it's starting with Japanese characters followed by all alphanumeric characters, it only shows the alphanumeric part
It properly shows the filename with Japanese characters only if they are at the middle/end (in other words, it shows the proper filename only if it is starting with an alphanumeric character)

I gave the examples with Japanese characters, but there are probably other characters that break the filename in the same way too.

is it the code itself renaming the files, or the OS?

I noticed the filename (fname) in the database is empty when there are Japanese characters in the filename

If anyone coming from the future has this issue, do this:
https://www.graalvm.org/latest/reference-manual/ruby/UTF8Locale/