tree view need use ascii-8bit, file name need be utf8.
This commit is contained in:
parent
1c08cb404d
commit
96d4f22e53
3 changed files with 4 additions and 3 deletions
|
@ -18,7 +18,8 @@ module TreeHelper
|
|||
end
|
||||
|
||||
def tree_full_path(content)
|
||||
if params[:path]
|
||||
content.name.force_encoding('utf-8')
|
||||
if params[:path]
|
||||
File.join(params[:path], content.name)
|
||||
else
|
||||
content.name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue