Expand my Community achievements bar.

SOLVED

Content Entry | Best way for content bulk upload of arabic / chinese language (mutli bytes) to CQ (curl etc)

Avatar

Level 4

I have excel sheet where i have got content in chinese / arabic which needs to be uploaded to CQ. In excel i can see they are displaying fine. I am thinking of using curl command automate the process. I have used curl in past for english language content and it works nice.

 

But now when i use curl for uploading these special languages everythjing gets uploaded as QUESTION MARK or JUNK.

 

is there any attribute / parameter i need to send in curl command

 

Below is my curl command

 

    
curl -u admin:admin  http://localhost:4502/etc/designs/footer   -F  "text=洲際酒店集"

 

It works well if text is english
curl -u admin:admin  http://localhost:4502/etc/designs/footer   -F  "text=how are u"

Is there any way I can pass character encoding (UTF-8) to this statement ?

1 Accepted Solution

Avatar

Correct answer by
Level 10

See this article about writing a servlet for AEM that are able to handle specials chars:

http://scottsdigitalcommunity.blogspot.ca/2014/04/posting-special-characters-to-adobe.html

As noted in the article - using CURL does not work. 

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

See this article about writing a servlet for AEM that are able to handle specials chars:

http://scottsdigitalcommunity.blogspot.ca/2014/04/posting-special-characters-to-adobe.html

As noted in the article - using CURL does not work. 

Avatar

Level 4

Thanks so much Scott for your quick reply. Let me try that out.