Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search form error with unicode character in linux #27

Open
moviefuns opened this issue Jul 3, 2019 · 2 comments
Open

Search form error with unicode character in linux #27

moviefuns opened this issue Jul 3, 2019 · 2 comments

Comments

@moviefuns
Copy link

Hello.
I've deployed piggydb with tomcat 8.5.3 on alpine linux 3.9. Everything is fine but some problem on search text form. When I input unicode characters in search form, in post result pages the keyword was replaced by question marks.
Followed many instructions I've add utf-8 encoding support in tomcat conf files, server.xml and web.xml, as bellow.

server.xml:
"<connector ..... URIEncoding="UTF-8" .... >"

web.xml
uncomment " setCharacterEncodingFilter ... " section and
"setCharacterEncodingFilter ... " section.

But with no luck, when I input unicode characters in search form, the result page still got question mark which should be the unicode characters.
Could anyone help me, please?

@pimgeek
Copy link

pimgeek commented Jul 3, 2019

I had encountered similar problems, and I recommend using winstone.jar instead of tomcat. the command line for your reference:

java -jar winstone.jar --warfile=piggydb.war \
     --httpsListenAddress=0.0.0.0 --httpsPort=443 \
     --httpPort=-1 --ajp13Port=-1 \
     --httpsKeyStore=your_keystore_name.jks --httpsKeyStorePassword=your_keystore_password
  • the winstone.jar version I used is 1.7.0 - url
  • the md5 checksum is - 9ddcffb6158cee6278f797076c644560

@moviefuns
Copy link
Author

moviefuns commented Jul 3, 2019

I had encountered similar problems, and I recommend using winstone.jar instead of tomcat. the command line for your reference:

java -jar winstone.jar --warfile=piggydb.war \
     --httpsListenAddress=0.0.0.0 --httpsPort=443 \
     --httpPort=-1 --ajp13Port=-1 \
     --httpsKeyStore=your_keystore_name.jks --httpsKeyStorePassword=your_keystore_password
  • the winstone.jar version I used is 1.7.0 - url
  • the md5 checksum is - 9ddcffb6158cee6278f797076c644560

Thank you. Try winstone.jar later.

UPDATE:
Awesome!
Winstone.jar works!
Thank you pimgeek!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants