Hi All,
We are using the below query builder API to read CQ page content information. But in our nodes we have Russian text as node property values. When we read using the below code, we are getting ??????? instead of actual value.
How to set character encoding in query builder API ?
Map<String,String> map=new HashMap<String,String>();
map.put("property", "jcr:primaryType");
map.put("property.or", "true");
map.put("property.1_value", "cq:PageContent");
map.put("property.2_value", "dam:AssetContent");
map.put("p.limit","-1");
adminSession = slingRepository.loginAdministrative(null);
query = builder.createQuery(PredicateGroup.create(map), adminSession);
result = query.getResult();
Regards
Nivas
Solved! Go to Solution.
Views
Replies
Total Likes
Localization context needs to be set. Ex:- <cq:setContentBundle language='' />
Views
Replies
Total Likes
Localization context needs to be set. Ex:- <cq:setContentBundle language='' />
Views
Replies
Total Likes
Hi Sham,
Thanks for your quick reply, but the example you provided is for JSP. But we don't have any JSP, in java we are reading the page content using Query Builder API. How do we retrieve the localized content in java.
Regards
Nivas
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies