-1

I am using icefaces when I enter arabic value I get some strange value like ????? on bean.

<ice:inputTextarea id="content" cols="30" rows="7"
    onkeypress="moveFocus(event,'btn-add');"
    binding="#{createSmsTemplateBean.bodyRef}"
    value="#{createSmsTemplateBean.smsTemplate.smsContent}"
    valueChangeListener="#{createSmsTemplateBean.contentChangeEvent}"
    partialSubmit="false"
    onkeyup="moveFocusSMS(event,'btn-addtag',form,this);"
    style="width: 507px; height: 97px;">
   </ice:inputTextarea>

when I print smsContent on createSmsTemplateBean, I got value like ?????.

i have also used meta tag in jspx like

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>

still i get the problem....

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
chetan
  • 3,175
  • 20
  • 72
  • 113
  • Where exactly do you see `?????` ? In the log file? In the IDE console? In the webpage? In the database? – BalusC Nov 11 '10 at 13:56
  • In the server log file i.e. i print that in System.out.println(); – chetan Nov 12 '10 at 04:26
  • your file (.txt maybe) dosn't support arabic. – Fabio B. Nov 12 '10 at 12:52
  • you have to check in the debugger, you should see the right chars... – Fabio B. Nov 12 '10 at 12:53
  • take in mind, when you save somewhere the arabic chars (txt, db, xml, etc..) you have to be sure that your data source is using the UTF-8 enconding. – Fabio B. Nov 12 '10 at 12:55
  • @chetan: use `@nickname` to notify others immediately about comments which are not been posted in their own message. Otherwise you're dependent on whether the other would decide to look in the question once again or not. – BalusC Nov 12 '10 at 17:11
  • It is resolved , backside I get ????, but when I convert it into unicode it is work perfect.I will encode data into unicode while enter into database and decode that while fetch from database – chetan Nov 13 '10 at 04:11

1 Answers1

0

I got the output on server console as ????? but when i convert it to char ascii it converted fine i.e this is problem of sever log file console that it can not display such character

chetan
  • 3,175
  • 20
  • 72
  • 113