kumarsivarajan / mollify

Automatically exported from code.google.com/p/mollify
0 stars 0 forks source link

charset err in windows #455

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
mollify version 1.8.9.3,windows + xampp 1.8.3

It can't work with folder's name in chinese? When I want to add a publish 
folder which the folder's name in chinese, it report "Folder does not exist". 
And if i want to create the foler,it worked but the folder's name is garbled in 
windows explorer.
I have set the charset to utf-8,and mysql in utf-8,also the php is in 
utf-8.what can i do now?

sorry for my bad english.

Original issue reported on code.google.com by popmi...@gmail.com on 19 Aug 2013 at 1:33

Attachments:

GoogleCodeExporter commented 8 years ago
And  if the filename has word which not in ANSI, the file while not be display 
in filelist,either folders.

Original comment by popmi...@gmail.com on 19 Aug 2013 at 1:42

GoogleCodeExporter commented 8 years ago
The problem is that windows itself is not in UTF-8, in OS X and Unix systems 
this is not a problem as they usually are UTF-8, but Windows usually is not.

You need to setup conversion 
https://code.google.com/p/mollify/wiki/BackendSettings#Convert_filesystem_filena
mes_(_convert_filenames_)

Note that admin util does not support conversion, at least not when creating 
the folder via admin util (there is another issue for this, will be fixed in 
2.1), so it's safest to use ANSI letters in published folder paths (but you can 
use any chars in the visible name, though).

Original comment by samuli.j...@gmail.com on 19 Aug 2013 at 2:33

GoogleCodeExporter commented 8 years ago
Just to mention, you need to resolve the correct charset used in your system. 
In chinese "GBK" is usually the right one, but I guess it can be some other as 
well.

See this thread for similar case (scroll down to last post): 
https://groups.google.com/forum/#!searchin/mollified/charset/mollified/EcPKOPawD
FU/9ysF26JG7IUJ

Original comment by samuli.j...@gmail.com on 19 Aug 2013 at 2:37

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Thank you for your reply, when I only use php's mkdir function, it can be 
correctly written to the Windows file system. Scandir function also works fine 
and I tracked the JSON characters, the text is also true. Then is not 
communication between or caused due to mysql? item_id table in mysql I see the 
characters is garbled, I have set the $ DB_CHARSET = "utf8"; but useless when I 
attempt to convert "convert_filenames" => "GBK", the system directly Feedback 
unknown error, and then finding out any information.
If only the file name displayed is correct, the local file path is garbled, 
after that there is no way to identify who operate these files, right?
If no idea, I will make it word on linux  and hope mollify can work well with 
CentOS.;)
Hope this project is getting better.

Original comment by popmi...@gmail.com on 20 Aug 2013 at 2:01

GoogleCodeExporter commented 8 years ago
Windows is very difficult with the charsets, any other OS is better. Try 
cleaning out the item_id table, because if it already contains corrupted paths, 
this "convert_filenames" will not help.

Original comment by samuli.j...@gmail.com on 7 Sep 2013 at 9:25

GoogleCodeExporter commented 8 years ago
Discussed in issue 492

Original comment by samuli.j...@gmail.com on 11 Nov 2013 at 9:48