Multiple Upload Issue with Chinese Characters Folder Name Multiple Upload Issue with Chinese Characters Folder Name
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Multiple Upload Issue with Chinese Characters Folder Name

Started by ACDS2, September 22, 2011, 03:22:22 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

ACDS2

Hello.

I am using trhis great gallery-ware for some work photos, though I am having a problem with Multiple Upload with Folders with Chinese(Simplified Chinese, GB2312) names.

The problem is when you put some folders with Chinese name, the page displaying albums and its subfolders will show Chinese Folder Names as illegible ( it's like when you use wrong encoding displaying a page/database).

I checked the language files and found there is no GB2312 lang file or setting, there is a Chinese Simplified(euc) but it won't work for my case.

So is there any patch or trick to make Folder Names display correctly? so I can use Multiple Upload to make things easier.

Thanks in advance.

Αndré

Quote from: ACDS2 on September 22, 2011, 03:22:22 AM
Multiple Upload
I assume you're talking about the batch-add feature, as all other upload methods won't create such folders, right?

ACDS2

Quote from: Αndré on September 22, 2011, 11:03:31 AM
I assume you're talking about the batch-add feature, as all other upload methods won't create such folders, right?
yea, I don't know what exact name of the feature.

To elaborate, there are 3 uploads in "stock" coppermine:

1. single file upload
2. multiple file upload( flash based)
3. batch file

The one i am talking about is 3rd one, it lists all subfolders in albums folder, my problem is it lists all Chinese Folder names as illegible characters(more like wrong encoding characters), so it's impossible to tell which folder to upload or to name the uploaded albums.

Αndré

It's recommended to use only alphanumeric characters and underscores, just for that reason. Rename your folders accordingly and everything should work as expected.

ACDS2

Quote from: Αndré on September 22, 2011, 11:52:19 AM
It's recommended to use only alphanumeric characters and underscores, just for that reason. Rename your folders accordingly and everything should work as expected.
Thanks for the hint, but is there any way to work around it, cause it's not trivial task to rename a lot of foldernames into something understandable in alphanumeric characters.

Αndré

In my opinion the folder names don't have to be understandable, as your users usually will never see them. Coppermine has a built-in transliteration engine that replaces all non-alphanumeric characters to their alphanumeric equivalents where possible. So if you don't want to rename your folders manually, we could write a simple script for that task.

If you want to keep your folder names you're on your own. But if you find a solution you might want to consider to share it with the community.