473,399 Members | 2,159 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Special characters in java, oracle and html

Hi,

I'm working on a mini content management system and need help with
dealing with special characters.

The input are taken from html form which are then stored into a
varchar column in oracle database.

When i retrieve the data, some of the special characters have been
changed to ??? and also
fields with double quote are modified.

I believe there two issues;

1. dealing with special characters

2. display special characters back in html form textfield after
retrieving.

e.g.

This is the line with "quote" saved to database
This is the line with "quote" retrieved from database

This is the line with displayed in html text field.
Any help will be much appreciated.

Thanks in advance.
Jul 17 '05 #1
3 17159
Barry Olly wrote:
Hi,

I'm working on a mini content management system and need help with
dealing with special characters.


Don't cross-post without a reason. Please say which distribution, which
database, which source application, which destination application.

Choose one newsgroup. Make one post.

Bogus follow-up deleted.

--
Paul Lutus
http://www.arachnoid.com

Jul 17 '05 #2
bb*@africamail.com (Barry Olly) wrote in message news:<27**************************@posting.google. com>...
I believe there two issues;

1. dealing with special characters

2. display special characters back in html form textfield after
retrieving.


The quick and dirty method would be to put a character filter the end
of your i/o operation that is giving you trouble.

public class Filter
{
public String filter(String input)
{
// for each special character, convert it into its
// appropriate escape/ampersand sequence and add it back into the
string
// in the place of the special character e.g. > ==> &lt
}
}

mypetrock
Jul 17 '05 #3

"Barry Olly" <bb*@africamail.com> wrote in message
news:27**************************@posting.google.c om...
| Hi,
|
| I'm working on a mini content management system and need help with
| dealing with special characters.
|
| The input are taken from html form which are then stored into a
| varchar column in oracle database.
|
| When i retrieve the data, some of the special characters have been
| changed to ??? and also
| fields with double quote are modified.
|
| I believe there two issues;
|
| 1. dealing with special characters
|
| 2. display special characters back in html form textfield after
| retrieving.
|
| e.g.
|
| This is the line with "quote" saved to database
| This is the line with "quote" retrieved from database
|
| This is the line with displayed in html text field.
|
|
| Any help will be much appreciated.
|
| Thanks in advance.

Hi Barry, we have encountered this problem before. It is to do with the
character encoding which is used. I can't remember our exact fixes, but if
you look at the API & check out the String class & encodings (or charsets)
you should be able to fix most of it. Oracle databases also use special
escape characters, but the escape character needs to be turned on or
enabled. See your DBA, or if that's you also have a hunt about in the
documentation, if you use TOAD, there is a menu option (somewhere) to enable
it.

HTH
--

Paul
pa**@javacoda.com
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Pikkel | last post by:
i'm looking for a way to replace special characters with characters without accents, cedilles, etc.
125
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
6
by: Dario Di Bella | last post by:
Hi all, I hope someone can help me on this. I need to parse the following XML: .... <area name="promotore"> <item id="004" code="003" description="attivita promotore"> <!]> </item> </area>...
1
by: quickcur | last post by:
I am rewrite some of my excel sheets to xml document. In my excel, there is a lot of special characters like "/", " " (space), "#", "+'. I am using a java program based on JDom to to create xml....
4
by: kenneth.osenbroch | last post by:
Hi, I have a MSSQL Server communicating with an Oracle database through a MSSQL linked server using a MS ODBC connection. If I query the Oracle database through the Oracle ODBC 32Bit Test, the...
6
by: Stefan Mueller | last post by:
I read data (e.g. äöüÄÖÜçéàè"') from my MySQL database which I'd like to show in an input box. <?php $mysql_data = "äöüÄÖÜçéàè\"'"; $html_data = addslashes(htmlentities($mysql_data,...
7
by: Trac Bannon | last post by:
When I load XML from a file into a dotNet XMLDataDocument, the UTF-8 codes are resolved but the 5 special XML entities are not. How can I force those 5 special character types to be translated?
1
by: Krelek1000 | last post by:
Hi, Our Oracle Database is going to go through an update soon that will involve the looking of Special Characters in fields of a table. I am wondering if there is a special way to look for...
3
by: rhandoo | last post by:
Hi, I am facing the problem in displaying the special characters like ( ` ) GRAVE ACCENT in C# windows Application. I am using oracle as back end. In oracle database table the string contain...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.