• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Linefeeds don't work

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

When I post a comment with linefeeds in it (i.e. I hit enter) the resulting text has the linefeeds stripped out. Everything shows up on one line. I am using MySQL 4.1.x with UTF8 as the default encoding. I highly suspect it is related to the problem. Furthermore, I used a JNDI datasource for my connection, so I had no way of specifying that I am using utf-8 to JForum. Also I configured
"?characterEncoding=UTF-8" at the end of my database URL.

Any ideas how to fix this?

Thank you,
Gili
[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Strange. I've jforum.net using UTF-8 and it works fine. It's hard to say the problem with so little information. If you think the encoding can be the problem, just try to change it and see what happens.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Testing:

1
2
3
4
5
[originally posted on jforum.net by Anonymous]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!