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 - それを解析するか、プレーンに DB に挿入しますか?
MySQL - データを保存します

入力が UTF-8 (許可) に設定されていることを確認しますか?
Javaの文字列がUTF-8として扱われている
こと、またMySQLがUTF-8に設定されていること

于 2013-03-04T12:26:52.103 に答える