cancel
Showing results for 
Search instead for 
Did you mean: 

Lucene Xpath with Chinese character

liao1108
Champ in-the-making
Champ in-the-making
Hello,

I am testing scheduled actions toward a space named in Chinese under company home, I define a queryTemplate within scheduled-action-services-context.xml as follows

<property name="queryTemplate">
     <value>PATH:"/app:company_home/cm:XXXXX/*"</value> 
</property>

the XXXXX means space name in Chinese, it doesn't work and no exception, Lucene just can not get the path.

I know it should be encoded into ISO9075 for compliance, but where to look for encoding function ?

Pleae help and thanks for your gentle share.

Leo
1 REPLY 1

liao1108
Champ in-the-making
Champ in-the-making
Hi,

I got wrong, Chinese space name works fine. It's the same string after encoding by ISO9075.encode.

Thanks.