html characters like   in fck editor

Hi,
we are using FCKEditor for the text areas in our application. Recently we have upgraded our application from jdk1.4 to jdk1.6. when we try it in editable mode, I can type it in fck editor and it works fine there. But upon the approval the browser will go into read only mode, in which all the special characters are converting into the html codes. for example, space is converting into ' ', quotes are converting into '"' etc. Can any body help me how to fix this issue, I can manually add the code to replace them but I dont think that is suggestable, because I have to write code for each adn every symbol.
Any help would be appreciated.

Thanks.
presynctAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Sam654Commented:
I don't know your software so this may not be helpful. But it sounds like your read mode HTML isn't being passed thru. There are many ways to solve this depending on the different software that you use, so I can't suggest a specific one for your software, but if you can enclose the problem HTML in square brackets "[" and "]" it may solve it.
0
presynctAuthor Commented:
Thanks for your response. But I didnt understand your anser "enclose the problem HTML in square brackets". how can I do it?
We are using velocity templates to design the form, I can do it using velocity template or javascript or java. Can you please suggest me on how can |I do this.
Thanks.
0
Dave BaldwinFixer of ProblemsCommented:
There were a lot of complaints on the fck editor forums about this, special characters into HTML-entities, but no answers.  I'm wondering if your version had been customized and the update broke it..
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Sam654Commented:
Like I say I don't know the software you're using, so it might not be possible. But if you can somehow put the HTML that is causing the problem " blah blah   "" etc. in square brackets "[ blah blah   "]", it might sort it, although I think you problem need a software specific solution.
0
Ryan ChongCommented:
>>for example, space is converting into ' ', quotes are converting into '"' etc.

Are you manually typing the text OR you copy and paste it from another source?

If the text is saved into a database, try do some queries and see what you get from your favourite query software?
0
presynctAuthor Commented:
we are manually typing the text. Text will not save into the database. when user types some thing into the text and approves it, it goes to supervisor queue. where as supervisor can open only the read only view. there comes the actual problem. It looks good in all the ways except this read only mode. Since its the readonly mode, I can not even access that text area field from the javascript. I am completely out of ideas. Please help me.

Thanks.
0
Ryan ChongCommented:
what is mean by readonly mode here?
0
presynctAuthor Commented:
read only mode the text area containing  the text but we can not edit that.
0
Dave BaldwinFixer of ProblemsCommented:
Are you doing all this thru a web browser like Internet Explorer or Firefox?
0
presynctAuthor Commented:
yes, its through the browser, internet explorer.
0
Dave BaldwinFixer of ProblemsCommented:
Internet Explorer will normally display   as a blank space as it does in your editing window.  Also, the text you enter has to be temporarily stored somewhere until the supervisor reads it, either in a file or a database.  I doubt that FCKeditor is your problem.  And if you don't have access to the whole chain of events and programs, I don't know that you will be able to fix it.  You don't seem to have access enough to answer some of our questions.
0
presynctAuthor Commented:
I have the complete access to the production server. Even I doubt that the problem is with the FCKEditor, but I dont know what the problem is. As you said, we are saving the text in the file system. Please tell me what are your questions, so that I will answer them and try to fix the prorblem.
0
Dave BaldwinFixer of ProblemsCommented:
FCKEditor normally turns certain characters into HTML entities like  .  That's the only way it could display more than one space in a row because HTML ignores more than one plain space character.  If you have a 'view HTML' option on your FCKEditor page, you can probably see that.  And that's probably what FCKEditor is saving to the file.  Please look at one of the files in a text editor and verify that.

If you see just ' ' that's ok.  If instead you see ' ', then it is being double encoded and the problem is in the saving process.

If you see just '&nbsp;' in the file, the next thing that can mess things up is the process that gets the file and it can do things like double encoding.  You can check that by doing a 'View Source' on the supervisor's computer.  Also look for <pre></pre> tags before and after the message.

Somewhere in one of those steps you should find something that changes the text.  Then we can figure what is doing it and what to do about it.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
presynctAuthor Commented:
The problem is in the saving process. As you said, I have looked into the code when we are saving the text into the file system, and found the problem that at some point we are manually converting the & into &amp; thats why it didnt work. so I fixed it.Thanks a lot for your help
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java EE

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.