Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.
SOLVED

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

Avatar

Level 7

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

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

akshaybhujbale_1-1664509436856.png

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.

1 Accepted Solution

Avatar

Correct answer by
Employee

https://experienceleague.adobe.com/docs/experience-manager-65/developing/platform/naming-conventions...

 

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.

View solution in original post

2 Replies

Avatar

Correct answer by
Employee

https://experienceleague.adobe.com/docs/experience-manager-65/developing/platform/naming-conventions...

 

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.

Avatar

Community Advisor

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