I use hibernate.hbm2ddl.import_files<http://docs.jboss.org/hibernate/orm/4.1/manual/en-US/html/ch03.html#configuration-optional>, so I don't read the files, this tool perhaps read the files and use default encoding when insert data. Perhaps doesn't use file.encoding system parameter, i will investigate this.
Thanks Thomas! 2012/6/29 Thomas Mueller <[email protected]> > Hi > > I don't think the problem is with Hibernate either. > > The problem might be how you read files from the file system (before > inserting them into the database). If you use FileInputStream or > similar then you need to specify the encoding (it's not UTF-8 on > Windows). > > Regards, > Thomas > > > On Fri, Jun 29, 2012 at 3:34 PM, Juan Pablo Gardella > <[email protected]> wrote: > > Ok, thanks Thomas. I don't know how only happen on windows, the html > files > > that are encoding with utf-8 show well, error messages show well, only > the > > data returned by database has this problems. I use hibernate to populate > the > > database, perhaps the problems are there. > > > > Cheers, > > Juan > > > > 2012/6/29 Thomas Mueller <[email protected]> > >> > >> Hi, > >> > >> > I suppose that memory database use CP1252. > >> > >> No, H2 supports Unicode. I am sure this is not a problem within H2. > >> > >> > Fileencoding has nothing to do with database. > >> > >> Yes. > >> > >> > If you having Problems in the > >> > browser it is most likeley a problem of wron encoding information in > >> > header > >> > and or html file. > >> > >> Yes, or in the servlet / web application, or the web server > >> configuration. I found it's a relatively common problem to get > >> encoding problems when using web applications. > >> > >> Regards, > >> Thomas > >> > >> -- > >> You received this message because you are subscribed to the Google > Groups > >> "H2 Database" group. > >> To post to this group, send email to [email protected]. > >> To unsubscribe from this group, send email to > >> [email protected]. > >> For more options, visit this group at > >> http://groups.google.com/group/h2-database?hl=en. > >> > > > > -- > > You received this message because you are subscribed to the Google Groups > > "H2 Database" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group at > > http://groups.google.com/group/h2-database?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "H2 Database" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/h2-database?hl=en. > > -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/h2-database?hl=en.
