Hello,
I have the following questions that I have not been able to find any
*good* answers for. Your help would me much appreciated!, fyi, I am a
Java XML guy and I have no experience with SGML so my questions will
probably be XML biased.
1) Is is possible to have Unicode text inside an SGML file?
an example would be something like this.......
there is an SGML file with ascii text for alot of the data elements
and one specific element has the acutal unicode text in it. The
Unicode would have alot of CJK in it too, don't know if that matters.
2) I read something that SGML can not handle variable length byte
characters in it, so does this mean that if Unicode was supported that
only UTF-32 would be supported cuase it is fixed byte length as
opposed to UTF-16 and UTF-8?
3) if it is possible, how do you do it? and can you *please* give me
some web pages that have some examples.
4) If it is not possible, can you *please* give me a list of reasons
why it is not possible or the 20 hoops you have to jump through to do
it.
I am writting up a white paper and need answers to back up whatever I
say.
once again, thank you for you help, it is much appreciated!
krammer 1 2165
krammer wrote: Hello,
I have the following questions that I have not been able to find any *good* answers for. Your help would me much appreciated!, fyi, I am a Java XML guy and I have no experience with SGML so my questions will probably be XML biased.
1) Is is possible to have Unicode text inside an SGML file?
Yes, as UTF-8 if the declaration files allows the byte range 128-255,
simply by adding this line: DESCSET 128 128 128
an example would be something like this.......
As an XML guy you know how..
there is an SGML file with ascii text for alot of the data elements and one specific element has the acutal unicode text in it. The Unicode would have alot of CJK in it too, don't know if that matters.
2) I read something that SGML can not handle variable length byte characters in it, so does this mean that if Unicode was supported that only UTF-32 would be supported cuase it is fixed byte length as opposed to UTF-16 and UTF-8?
You are mixing bytes and characters...
Seeing from a parsers view an UTF-8 encoded character streams is just a
sequence of 8-bit bytes. It is your presentation layer that should know
how to combine these bytes into unicode characters.
However: You cannot represent unicode characters > 255 as numeric
entities like Ӓ without modifying your SGML parser to pass it as
UTF-8.
3) if it is possible, how do you do it? and can you *please* give me some web pages that have some examples.
4) If it is not possible, can you *please* give me a list of reasons why it is not possible or the 20 hoops you have to jump through to do it.
I am writting up a white paper and need answers to back up whatever I say.
once again, thank you for you help, it is much appreciated!
krammer
--
Bjorn Brox, CORENA Norge AS, http://www.corena.no/, ICQ 17872043
Industritunet, Dyrmyrgt. 35, N-3611 Kongsberg, NORWAY
Phone: +47 32717210, Fax: +47 32717201, Mobile: +47 92638590 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Aditya Ivaturi |
last post by:
We have a CMS which is written is based on php & mysql. Recently we received
a request to support multiple languages so that sites in that particular
laguage can be created. I did some search on the google and it seems I have
to build in multibyte support for php and mysql. Mbstring
(http://us3.php.net/mbstring) claims to support multiple languages with a
caution saying it might not work properly.
After further research it seems unicode...
|
by: Usman |
last post by:
Dear friends,
I would like to ask about James Clark sx.exe parser from SGML to XML.
I write the batch file like this :
"E:\Project\sx\sx.exe" -wall
"-DE:\Project\sx\entities" "-fE:\Project\error.log"
-xndata "E:\Project\xyz.dtd" "E:\Project\xyz.sgm" > "E:\Project\xyz.xml"
E:\Project\sx\sx.exe:E:\Project\xyz.sgm:15:55:W: reference to internal
SDATA entity "ldquo" not allowed in
|
by: krammer |
last post by:
Hello,
Can any one please give me a short but concise pros and cons list of
Unicode support in both SGML and XML?
long story short, we are gonna port our leagacy SGML files to XML and
the new XML files will have foreign (CJK) and Ascii/English in them.
XML would be better to store the text in cuase it has better Unicode
support than SGML right???? what are these advantages that XML has
|
by: S. |
last post by:
if in my website i am using the sgml { notation, is it accurate
to say to my users that the site uses unicode or that it requires
unicode?
is there a mathematical formula to calculate a unicode value given its
utf8 value?
Rgds,
Sam
|
by: Andrew Thompson |
last post by:
I was recently loading an HTML editor
so I could find the charcode of that
particularly obscure character using the
editor's 'insert special character' dialog.
It occured to me there had to be a
better way. There are probably dozens,
but here is my solution..
http://www.physci.org/codes/charset.jsp
| |
by: Kieran Green |
last post by:
Greetings,
We are building an application written for Windows in C++ which uses
OLEDB to connect to AIX DB2 8.2. Our app stores all string data in
the wchar_t datatype, which generates dynamic SQL, typically with
bound parameters DBTYPE_WSTR, and so is a Unicode app.
We don't know whether to use the vargraphic datatype for storing
strings, or varchar, and which database character sets to support.
|
by: Divick |
last post by:
Hi all,
can somebody tell how much std::wstring is supported across
different compilers on different platforms? AFAIK std::string is
supported by almost all C++ compilers and almost all platforms, is that
also the case with wstring?
Another related question that I have is, is it advisable to use
wstring than string for unicode support? To be able to support Unicode
build, is it that all the occurrence of std::string will need to be...
|
by: Frantic |
last post by:
I'm working on a list of japaneese entities that contain the entity,
the unicode hexadecimal code and the xml/sgml entity used for that
entity. A unicode document is read into the program, then the program
sorts out every doublet and the hexadecimal unicode code is extracted,
but I dont know a way to find the xml or sgml-entity equivalent to the
unicode code. Anyone who could give me a pointer?
Best regards
|
by: sonald |
last post by:
Hi,
I am using python2.4.1
I need to pass russian text into python and validate the same.
Can u plz guide me on how to make my existing code support the
russian text.
Is there any module that can be used for unicode support in python?
Incase of decimal numbers, how to handle "comma as a decimal point"
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |