I am using the Spring Tools suite and I've got a rest server that I used to do through a tutorial on the springs web site. Was configured from. In addition, I found a database that meets customers' REST server requests. My problem is that the characters displayed in the browser have been messed up ☆ Stars ☆ becomes Stars and so on. When I encode online with IO-8859-1 and decode it with UTF-8, the result is what looks like to look like letters. I'm connecting to the server via AJAX, if it matters it seems like one step is missing.
The tweaking I've done so far is:
Beans. Xml
& lt; Bean id = "datasource" class = "org.springframework.jdbc.datasource.DriverManagerDataSource" & gt; & Lt; Property Name = "driverClassName" value = "com.mysql.jdbc.Driver" /> & Lt; Property name = "url" value = "jdbc: mysql: // localhost: 3306 / database? CharacterEncoding = latin1" /> & Lt; Property Name = "User Name" Value = "User" /> & Lt; Property Name = "Password" Value = "Pa $$ word" /> & Lt; / Bean & gt;
characterEncoding: latin1
has made the text a bit more readable.
And I did the and lt; Without success in the heads of meta http-HTML files. Equil = "content type" content = "text / html; charset: UTF-8" & gt;
.
I've got a PHP version, the services I'm building with STS releases, it displays everything as it seems, so I do not think there is something wrong with the database and how the characters Stores.
I do not know what to try next.
No comments:
Post a Comment