rfl — 2012-11-25T08:59:42-05:00 — #1
i'm not sure if this is the right place to post
i made this blog (with java and mysql) and when i enter text and submit, this happens:
what i submit:
a b c d
what is displayed after submission and retrieve from database:
from where should i start in order to solve this?
using charset=iso-8859-1 in my jsp and latin-1 in mysql
rfl — 2012-11-25T11:18:25-05:00 — #2
i forgot to say that, if a want to post in the blog and have the text correctly output afterwards, i copy the text i input, then submit, then edit the retrieved text (the one with %20 chars added) and over it i paste the original text, submit (edit), getting it done now without any errors
shyflower — 2012-11-25T12:22:41-05:00 — #3
the %20 is the space. If you want to get rid of that you either need to mark the spaces with a dash or underscore or take the spaces out altogether in your url. Depending upon your blog platform, it should tell you how to make "friendly urls", using your htaccess file, to display without the %20 space markers.
rfl — 2012-11-25T12:27:19-05:00 — #4
Shyflower: its not in the url, its in the main blog's textarea where the %20 makes its appearance
rfl — 2012-11-25T12:29:11-05:00 — #5
have a look here at topics with title "teste":
shyflower — 2012-11-25T12:32:52-05:00 — #6
I looked at the link you left and didn't see any %20 markers in Google Chrome browser.
Oops... yes I did. Just a minute!
shyflower — 2012-11-25T12:35:37-05:00 — #7
Those markers are in your source code so I imagine your blog platform's rich text editor is putting them in there. What blog platform are you using?
This can also happen when you copy paste from a Word document to a rich text editor. The easiest way to get rid of them is to change from rich text to straight html, which is something you can do in most blog platforms (at least the ones I have used).
rfl — 2012-11-25T12:43:22-05:00 — #8
the blog was built from scratch by me, using java and mysql, so no rich text editor or whatsoever
as i said above, if i want it nice, i copy the original text, submit, then edit - paste over, submit again -> pls see the example in the link i gave above
shyflower — 2012-11-25T17:33:31-05:00 — #9
I'm not tech oriented, but I don't think this is a MySQL problem so I'm going to move this thread again then to general application and design, which is a programming forum. Maybe someone there will be able to help you. Good luck. Sorry I couldn't help more.
ralphm — 2012-11-25T17:57:11-05:00 — #10
The link seems not to be working now.
rfl — 2012-11-26T08:45:48-05:00 — #11
site is up again
sorry for the inconvenience
rfl — 2012-11-29T14:43:51-05:00 — #12
never mind: i partially recoded the app and now it works fine
shyflower — 2012-11-29T16:47:16-05:00 — #13
Sorry no one could help you out. Don't give up on us! Hopefully next time we'll do better.