to encode special caracter from asset path/page path which encoding technique used by aem. | Community
Skip to main content
Level 6
September 30, 2022
Solved

to encode special caracter from asset path/page path which encoding technique used by aem.

  • September 30, 2022
  • 2 replies
  • 713 views

Do you know which is url encoding technique used by aem.

Ex. If our file name is "jcr:content" 

But the encoded path of this file is 

http://localhost:4503/editor.html/content/dam/specialcharacters/jcr-content

then to encode this jcr:content to jcr-content which is the ecoding technique used by aem.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by digarg17

https://experienceleague.adobe.com/docs/experience-manager-65/developing/platform/naming-conventions.html?lang=en

 

Check JCRUtils. JcrUtil is the AEM implementation of the JCR utilities.

Of particular interest to validating names are the character mappings that it controls and the following validations:

  • isValidName

    • Checks if the name is not empty and contains only valid chars.
    • Can be used to check whether a proposed name is valid.
  • createValidName

    • This creates a valid label out of an arbitrary string.

2 replies

digarg17Adobe EmployeeAccepted solution
Adobe Employee
September 30, 2022

https://experienceleague.adobe.com/docs/experience-manager-65/developing/platform/naming-conventions.html?lang=en

 

Check JCRUtils. JcrUtil is the AEM implementation of the JCR utilities.

Of particular interest to validating names are the character mappings that it controls and the following validations:

  • isValidName

    • Checks if the name is not empty and contains only valid chars.
    • Can be used to check whether a proposed name is valid.
  • createValidName

    • This creates a valid label out of an arbitrary string.
arunpatidar
Community Advisor
Community Advisor
September 30, 2022

Hi,

What is http://localhost:4503/editor.html/content/dam/specialcharacters/jcr-content url? you are editing assets in site editor? or is it a Content Fragment?

Arun Patidar