0

how to replace this symbol from java coding .. when i copied it into here its look like "�" but in the coding it looks like a

small square box

if i saved the code its asking to save as 'utf-8' any one help me? Actually this is saved in the MYSQL Table while accession iam getting the problem

i will explain the scenario here..

I have to replace the single quotes and new line and double quotes characters in a string in java..

when i was iterating, i found a string like 'RS approves President?s Rule', i've checked in the database it is saved as 'RS approves President[small square box]s Rule '....i first think that 'single qoute' and tried to replace,

how can i replace this symbol..

4

1 回答 1

0

你能提供更多关于字符串流动的信息吗?

比如:
输入 - webform
java - 解析它还是直接将它插入数据库?
MySQL - 存储数据

确保输入设置为(允许)UTF-8?
Java中的字符串被处理为UTF-8
另外MySQL被设置为UTF-8

于 2013-03-04T12:26:52.103 回答