Note that there are some explanatory texts on larger screens.

plurals
  1. POmysql 5.0 unable to store utf8
    primarykey
    data
    text
    <p>Iv'e configured mysql 5.0 to store utf8 characters.I checked it with following queries :</p> <hr> <pre><code>SELECT character_set_name FROM information_schema.`COLUMNS` C WHERE table_schema = "oprdb" AND table_name = "rtable" AND column_name = "rtxt"; </code></pre> <p>the result is <code>utf8</code></p> <hr> <pre><code>SHOW FULL COLUMNS FROM rtable </code></pre> <p>this shows me <code>collation</code> as <code>utf8_general_ci</code></p> <hr> <pre><code>show variables like "character_set_database"; show variables like "collation_database"; </code></pre> <p>this too shows <code>utf8</code> in result</p> <hr> <p>it seems that mysql is configured correctly. i am getting text from an html page where user types text in a textfield and i submit that text to servlet using jquery post. </p> <p>My html page has this on top--</p> <pre><code>&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt; </code></pre> <p>i also added this into my form --</p> <pre><code>enctype="text/plain;charset=UTF-8" </code></pre> <p>In my servlet the first line in doPost is </p> <pre><code>request.setCharacterEncoding("UTF-8"); </code></pre> <p>and after that i just save that text in database.But the problem is that,i can't store this kind of text</p> <pre><code> Hiki iaʻu ke ʻai i ke aniani; ʻaʻole nō lā au e ʻeha. Я магу есці шкло, яно мне не шкодзіц </code></pre> <p>is their anything i am missing?</p> <p><strong>EDIT:</strong></p> <p>This is my datasource configuration..</p> <pre><code>&lt;Resource auth = "Container" driverClassName = "com.mysql.jdbc.Driver" factory = "org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory" initialSize = "10" logAbandoned = "true" maxActive = "50" maxIdle = "2" maxWait = "10000" name = "jdbc/oprdb" username = "root" password = "123456" removeAbandoned = "true" removeAbandonedTimeout = "60" type = "javax.sql.DataSource" url = "jdbc:mysql://localhost:3306/oprdb" /&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload