• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in transformation of special characters in XSLT  RSS feed

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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.courseTypeId.value=aTopicId;
document.AdvancedSearchForm.topicText.value = aTopicDescription;
if (aSubTopicId) {
document.AdvancedSearchForm.courseSubTypeId.value=aSubTopicId;
document.AdvancedSearchForm.subTopicText.value = aSubtopicDescription;
}
document.AdvancedSearchForm.submit();
}

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.
Eg:


English
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
 
Sheriff
Posts: 23429
46
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!