Announcement Announcement Module
No announcement yet.
UTF-8 Encoding problem Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • UTF-8 Encoding problem

    I'm generating a xml output but i`m having problems displaying it in the right encoding i use UTF-8 when i log the sql operation or the getters of the class i get proper output:

    2007-04-18 15:34:32,781 INFO [db.CompanyManagerDaoJdbc] - <UPDATE clientcompany SET Name = 'MH', ExtraName = 'HEAD Office', AddressID = '0', AddressDetails = '43', Phone = '1231231', PaymentAccount = '0888547787', AccountingName = 'Добрин' WHERE ClientCompanyID = '128'>
    2007-04-18 15:34:32,812 INFO [db.CompanyManagerDaoJdbc] - <Rows affected: 1>
    2007-04-18 15:34:32,843 INFO [db.CompanyManagerDaoJdbc$CompanyQuery] - <Name: Добрин>

    But when i put it in the MVC i get this:
    HTML Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <company itemid='81'>	
    		<Office>Head office</Office>
    		<Street>Chemin des Jardins</Street>				
    		<Town>Armentières en Brie</Town>				
    		<AccountingName>?об?ин Тин?ев</AccountingName>				
    I really don`t know what to do ?!
    Last edited by WebDaemon; Apr 19th, 2007, 04:06 AM.