You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

  Monday, 23 April 2018
  10 Replies
  7.5K Visits
Hi,

I will ask about the naming of images and files in JCE.
We Japanese usually use Japanese for these filenames. In other words, Japanese (kanji) is 2 byte code.

In JCE 's document, for example' Image Manager Extended / Uploading an Image ', Japanese is not allowed.
'The name can only contain the characters az, AZ, 0-9, period (.), Underscore (_) and dash (-). Spaces
are converted to underscores, all other characters are removed.

However, in fact, uploading is possible even if these file names are still in Japanese (kanji).
(See attached image)
This is the same not only for images but also for document names.

This phenomenon is useful for users, but for administrators, it is a serious problem when migrating the system.
Does handling of file names defined in Japanese do not match your document?

Please advise
Many Thanks
more than a month ago
·
#95871
In Editor Profiles -> Editor Parameters-> Filesystem, make sure Websafe File Names is set to UTF-8

https://cdn.joomlacontenteditor.net/tmp/95859-use-of-kanji.jpg

Just because you're not paranoid doesn't mean everybody isn't out to get you.

more than a month ago
·
#95875
Thanks Ryan,

The parameter you instructed is 'utf - 8' as it is.
However, Japanese images are registered in the media folder. (Attachment 1)

I will explain it a bit more accurately.
- Japanese image files can be uploaded to the media folder with the original kanji file name.
- However, the article contained the image caused an error (Attachment 2), I can not upload my articles.

Although this error message is unknown to the user, it can be warned that the article can not be uploaded,
but I think that it is the problem that the image of kaji name can be uploaded to the media folder.

Regards
more than a month ago
·
#95876
The error you are seeing is not a JCE error if it occurs when you attempt to save the article.

Which Joomla version are you using? I am not seeing any errors when saving an article containing an image that has a name of Kanji characters.

Just because you're not paranoid doesn't mean everybody isn't out to get you.

more than a month ago
·
#95893
Hi,Ryan,

Yes, I know that the error message in the previous message is Joomla's DB error, not JCE.
I am using the version of J3.8.6 (PHP 7.1).

The problem is not that error message, but what I want to tell is that the kanji file name will be registered in the image file before saving the article.
Japanese (kanji) Uploading images or files with file names is prohibited, or can you do it as per the documentation?

regards
more than a month ago
·
#95897
I"m not having a problem uploading files on the demo site (see below, names translated with Google Translate)

https://cdn.joomlacontenteditor.net/tmp/95859-use-of-kanji-2.gif

Can you upload on the demo site? - https://demo.joomlacontenteditor.net/

Just because you're not paranoid doesn't mean everybody isn't out to get you.

more than a month ago
·
#95901
Hi, Ryan,

Thank you very much for let me know the JCE test site. I uploaded an image of kanji file name (富士山の夕焼け1000.jpg).
That image was registered without error.

Well, please remember my first email.
Under the document specification of the Image Manager Extended, I understand that registration of this image file will be as follows.
'富士山の夕焼け1000.jpg' -----> '1000.jpg'

Is my understanding correct?

Regards
more than a month ago
·
#95902
If the Websafe File Names option is set to ASCII, then 富士山の夕焼け1000.jpg will be uploaded as fu shi shanno xi shaoke1000.jpg

The kanji characters are transliterated to Latin-ASCII equivalents.

Just because you're not paranoid doesn't mean everybody isn't out to get you.

more than a month ago
·
#95906
Hi,Ryan,

I did not know about JCE's 'Websafe File Names option' in detail.
But it seems very important point for me.

I have tested on my system and the following results are obtained.
- Websafe File Names option = 'ASCII'
- Image file '富士山の夕焼け1000, jpg' was uploaded as '1000, jpg'.
The kanji characters are removed..

It was not your result 'fu shi shanno xi shaoke1000.jpg'

Please tell me your thoughts about my result.
Is the Websafe File Name option a valid parameter in such a case?

Regards
more than a month ago
·
#95908
In order to convert kanji characters to ascii, JCE uses the PHP transliterator_transliterate function - https://secure.php.net/manual/en/transliterator.transliterate.php

If you server does not have this function enabled, then the characters cannot be converted and are removed.

Please speak to your host about enabling this function.

Just because you're not paranoid doesn't mean everybody isn't out to get you.

more than a month ago
·
#95918
Ryan,
Thank you very much.

For the PHP function you instructed, I will ask the host administrator.
About the difficult process of kanji, I got a path through discussions with you.
Thank you.
  • Page :
  • 1
There are no replies made for this post yet.
Be one of the first to reply to this post!