How can I show arabic query search from MYSQL by JavaFX?

前端 未结 1 1847
忘了有多久
忘了有多久 2021-01-25 21:15
SELECT * FROM `employee` WHERE `name` LIKE \"%شريف%\"

Above query works fine and find the element by phpmyAdmin query but using it inside JavaFX doesn\

相关标签:
1条回答
  • 2021-01-25 21:59

    As per my above comments, I guess it to be a encoding - decoding issue of Java and has nothing specific to do with JavaFX and I also assume that you are not getting any exceptions. You have to use a proper standard while inserting as well as retrieving data. Helpful information is there at , How to store arabic text in mysql database using python?

    Refer this article to work only on bytes so your application is always properly internationalized , Byte Encodings and Strings

    Refer this one too as how to set encoding in Java , How can I insert arabic word to mysql database using java

    Your console might be UTF8 enabled so you are able to match strings there and see Arabic characters.

    Hope it helps.

    0 讨论(0)
提交回复
热议问题