• 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 ...
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Problem in transformation of special characters in XSLT  RSS feed

Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a XSLT page which take some value from database.the fields are:
topicid,topicdescription,subtopicid,subtopicdescription.and passed it through the below anchor tab to a function "selectTopic"

<a href="javascript:selectTopic({$topicId},'{$topicDescription/JavaScriptFormat}',{@subtypeid},'{Description/JavaScriptFormat}');">

function selectTopic(aTopicId, aTopicDescription, aSubTopicId, aSubtopicDescription) {
document.AdvancedSearchForm.topicText.value = aTopicDescription;
if (aSubTopicId) {
document.AdvancedSearchForm.subTopicText.value = aSubtopicDescription;

The form gets submit and show the above four values in next page.
The problem is that:when the subtopicdesription field has some special character like "-" then on next page some garbagevalue appears.

IT � ITS Process
IT � Technical
Products & Services
Project Management
English is the "Topic" and rest is the subtopic.When i click (suppose )" IT � Technical".The on next page it shows

Topic: English > Sub-Topic: IT �€“ ITS Process

The above problem does not come in FireFox but occur in InternetExplorer.
Please give me the solution ASAP
Posts: 23646
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you generating XML or HTML? Your problem is that the document you create doesn't declare its encoding properly.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!