Escaping characters
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 18
- Joined: Fri Apr 21, 2006 12:41 am
Escaping characters
I have an application that converts Word documents to DITA, and in the process it scans each paragraph for illegal characters. The original documents include left and right quotes, as well as regular double quotes, angle brackets. etc.
My process converts the standard five:
Are only the previous five allowed, or did I misunderstand how to escape the other series of typable, but illegal characters?
My process converts the standard five:
- " "
' '
< <
> >
& &
Are only the previous five allowed, or did I misunderstand how to escape the other series of typable, but illegal characters?
Neil in Washington
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Escaping characters
Hi,
Note that you should consider the character encoding. The character codes (#147 and #148) seem to be for ISO8859-1 (or similar).
Since you're working with DITA which is usually using the UTF-8 encoding, you may want to use the corresponding Unicode character codes (U+201C, U+201D): “ and ”
It goes without saying that the same applies for other special characters.
Regards,
Adrian
Note that you should consider the character encoding. The character codes (#147 and #148) seem to be for ISO8859-1 (or similar).
Since you're working with DITA which is usually using the UTF-8 encoding, you may want to use the corresponding Unicode character codes (U+201C, U+201D): “ and ”
It goes without saying that the same applies for other special characters.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service