You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Julian Sedding (Jira)" <ji...@apache.org> on 2021/07/14 08:28:00 UTC

[jira] [Comment Edited] (SLING-10611) PDF file name is garbled

    [ https://issues.apache.org/jira/browse/SLING-10611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17380432#comment-17380432 ] 

Julian Sedding edited comment on SLING-10611 at 7/14/21, 8:27 AM:
------------------------------------------------------------------

You can send a parameter {{\_charset\_=utf-8}} when you upload the files. That should have the same effect as adjusting the default parameter encoding. I can't remember at the moment why the default parameter encoding is not set to UTF-8 by default. -I suspect it has to do with- This is due to backwards compatibility. Both the parameter and the configuration are documented in the [request parameter handling documentation|https://sling.apache.org/documentation/the-sling-engine/request-parameters.html#character-encoding-1]

I would be inclined to close this issue "Not a problem" or "Invalid", unless you have a suggestion what should be fixed.


was (Author: jsedding):
You can send a parameter {{\_charset\_=utf-8}} when you upload the files. That should have the same effect as adjusting the default parameter encoding. I can't remember at the moment why the default parameter encoding is not set to UTF-8 by default. I suspect it has to do with backwards compatibility.

I would be inclined to close this issue "Not a problem" or "Invalid", unless you have a suggestion what should be fixed.

> PDF file name is garbled
> ------------------------
>
>                 Key: SLING-10611
>                 URL: https://issues.apache.org/jira/browse/SLING-10611
>             Project: Sling
>          Issue Type: Improvement
>          Components: App CMS
>    Affects Versions: App CMS 1.0.2
>            Reporter: James Raynor
>            Priority: Major
>         Attachments: 1.png
>
>
> Steps to reproduce:
> Create /static/clientlibs/test, a directory, and upload the following PDF files:
> 简体中文. 繁體中文. 한국어.pdf
>  English.Español.Русский.pdf
>  Italiano.Deutsch.Français.pdf
>  Español (México).Português.pdf
> After uploading the PDF file name is garbled, and can not be deleted.
>  This problem has been plaguing me for a long time, I do not know how to solve, only recently found a solution.
> Goto [http://localhost:8080/system/console/configMgr]
>  Find the "Apache Sling Request Parameter Handling"
>  Set Default Parameter Encoding value to UTF-8
> It is recommended to set the config default value to UTF-8 automatically after SlingCMS is started, many users should not know how to solve this problem.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)