Hi Michael,
Thank you for your detail explanation first, but I really can’t get out from lost. In fact, what I am exactly doing is trying to switch from using x-application to passthru, to make a search, list, view page accordingly. But I’m having problem in character encoding.
I’d like to know if my approach is correct. Firstly, I have a jsp page that display a search box (basically just enter the xql). Inside the jsp, I have page directive of contentType set to “text/html;charset=utf-8”, I have html meta content-type set to “text/html;charset=utf-8”, i.e.,
<@page contentType="text/html;charset=“UTF-8”%>
I’m using Tomcat 3.3a final, I have . I just follow exactly the same way the jsp pages generated by x-app.
So, I enter a query which contains chinese characters and then submit to the TaminoFilter, using xsl to transform to the list page. But the expected match documents didn’t appear, i.e. ino:message XQL Request processed, no object returned.
I’m pretty sure it’s related to how the xql is encoded as the _xql parameter to TaminoFilter. With try and error, I discovered that if I change the charset in my jsp page, it works. i.e., change to
<@page contentType="text/html;charset=“iso-8859-1”%>
But obviously, I can’t display chinese characters in my search page.
I hope that you can still understand my problem despite of my poor english. All I want is just an working example of passthru, that can search out utf-8 characters. Or some clear direction of what charset I have to use in my search page and DecodeInterceptor in tomcat. Or even don’t use jsp for the search page?
By “Tamino will then return the document using its default encoding, which is iso-8859-1.”, do you mean my per database setting of “default encoding”? If not, where can I change it to utf-8?
Many many thanks for your patience!
Best regards,
Lun
#API-Management#webMethods#Tamino