473,387 Members | 1,532 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,387 software developers and data experts.

Problem in char " ® "

Hi,

The charecter/symbol " ® " writen in a file able to get only in that
system. When the file opened in other system, not able to see that
charecter, insted its viewd as " ? ". So, the special char sets are
different system to system?

How can over come this problem , that to view this symbol " ® " using
the same kind of editor in any system.

Its very urgent, Sooner reply will be very greatfull.

Thanks,
Sweety

Mar 27 '06 #1
11 1349
you idiot! use html language!!!!!!!!!!!!!!!!

Mar 27 '06 #2
No, the problem in charecter table, my question is the char "®" used
any where like *.doc, *.xls any editor, not able to get that on the
same file when open in different system. Able to view only in that
system. How can ensure that the other system supports this char " ®" .
Any settings will help?? else have to add this "®" char in windows
char table..?

Help pls...

Thanks,
Sweety

Mar 27 '06 #3
sweety wrote:
Hi,

The charecter/symbol " ® " writen in a file able to get only in that
system. When the file opened in other system, not able to see that
charecter, insted its viewd as " ? ". So, the special char sets are
different system to system?
Indeed, character sets are different from system to system. They are
even different on the same system when programs are invoked with
different locale settings.

You'll need to have some knowledge of specifically what character sets
are involved and why the problems are occurring. It sounds like some
sort of Unicode issue.
How can over come this problem , that to view this symbol " ® " using
the same kind of editor in any system.


Decide on a particular encoding for your files, and then make sure that
your editors all support that encoding, and make sure that they are told
that the file is in that particular encoding.

In my experience UTF-8 is not a bad choice. You do need to take note
that the registered trademark symbol is a multi-byte character in UTF-8
(two bytes, to be specific). It also takes two bytes in a number of
legacy Chinese, Japanese and Korean encodings.

--
Simon.
Mar 27 '06 #4
sweety wrote:
Hi,

The charecter/symbol " ® " writen in a file able to get only in that
system. When the file opened in other system, not able to see that
charecter, insted its viewd as " ? ". So, the special char sets are
different system to system?

How can over come this problem , that to view this symbol " ® " using
the same kind of editor in any system.

Its very urgent, Sooner reply will be very greatfull.


This is wrong group to ask in. Post in a group more relavent, perhaps
comp.std.internat or a group devoted to your editor?

Mar 27 '06 #5
Hi Simon,

Thanks for the reply. i'm also thinking on the same way. Would be grt
if you suggest me how i can change the properties for VSS 6.0, encoding
option.

Once again i would like to thank for your reply.

Thanks,
Sweety

Mar 27 '06 #6
Hi,

Further above problem, the scenario is when the file saved in same
system then able to get back.The same file when saved in different
system on same editor and same properties, not able to open in other
systems.

using VS - 7.1, VSS version 6.0

Any help pls....

Thanks,
Sweety

Mar 27 '06 #7
sweety wrote:
Hi,

Further above problem, the scenario is when the file saved in same
system then able to get back.The same file when saved in different
system on same editor and same properties, not able to open in other
systems.

using VS - 7.1, VSS version 6.0

Any help pls....

Thanks,
Sweety


Please read:

<http://cfaj.freeshell.org/google/>
<http://clc-wiki.net/wiki/Introduction_to_comp.lang.c>
<http://www.safalra.com/special/googlegroupsreply/>
<http://en.wikipedia.org/wiki/USENET>
<http://en.wikipedia.org/wiki/Netiquette>

Thanks.

Mar 27 '06 #8
sweety wrote:
Hi,

Further above problem, the scenario is when the file saved in same
system then able to get back.The same file when saved in different
system on same editor and same properties, not able to open in other
systems.

using VS - 7.1, VSS version 6.0

Any help pls....

Thanks,
Sweety

Please read:

<http://cfaj.freeshell.org/google/>
<http://clc-wiki.net/wiki/Introduction_to_comp.lang.c>
<http://www.safalra.com/special/googlegroupsreply/>
<http://en.wikipedia.org/wiki/USENET>
<http://en.wikipedia.org/wiki/Netiquette>

Thanks.

Mar 27 '06 #9
On 2006-03-27, sweety <ur********@gmail.com> wrote:
Hi,

The charecter/symbol " ® " writen in a file able to get only in that
system. When the file opened in other system, not able to see that
charecter, insted its viewd as " ? ". So, the special char sets are
different system to system?
Yes. Font/character sets change. The same character code can represent a
different character. From your English I guess you are using a
different character set.

How can over come this problem , that to view this symbol " ® " using
the same kind of editor in any system.
The editor needs to know from which encoding that character code was
selected. It is by no means trivial or easy IMO : at least I've seen
it confuse a lot of people in the past.

Its very urgent, Sooner reply will be very greatfull.

Possibly better to use more standard ascii representation such as (R).
Thanks,
Sweety

--
Debuggers : you know it makes sense.
http://heather.cs.ucdavis.edu/~matlo...g.html#tth_sEc
Mar 27 '06 #10
sp**********@googlemail.com writes:
you idiot! use html language!!!!!!!!!!!!!!!!


Did it ever occur to you that he might not be writing in an HTML (or
SGML, or XML) format?
Mar 27 '06 #11
Me
sweety wrote:
The charecter/symbol " ® " writen in a file able to get only in that
system. When the file opened in other system, not able to see that
charecter, insted its viewd as " ? ". So, the special char sets are
different system to system? From what I can understand from the vague posts of yours in this thread, it sounds like you're using a source control system and on one
(Windows) computer, when you edit a file in a text editor, it shows up
as (R), but on another computer it shows up as ?. If this is the case,
this is completely irrelevant to C or this newsgroup but I will help
you out anyway. Depending on how lazy the programmer of your text
editor was, there are a few different options:

- Set the encoding when saving the file, make this match up with the
destination.
- Set the encoding when reading the file, make this match up with the
source.
- If neither of the above are available then you have to set the
codepages to both computers to be the same (control panel | regional
options | general tab | set default).
- If even the above doesn't work, then the programmer of both text
editors went out of their way to be extremely evil. In which case, use
a better text editor.
Also, it might be a font issue because if one computer is editing using
a unicode font like "Courier New" and the other computer is using an
old font like "Terminal" which hardcodes the glyphs independent of what
your codepage is set to (and this font in particular doesn't even have
the (R) glyph). If you're on a non-Windows 9x computer, you can check
this out by going to Programs | Accessories | System Tools | Character
Map and seeing if the source and destination fonts are the same. I
doubt this is the case because by default, the ? character is used as a
substitution for encodings that don't map, and this would only come up
if the codepage doesn't map properly but it's something to be aware of.
How can over come this problem , that to view this symbol " ® " using
the same kind of editor in any system.


You can't.

For close to 100% portability, stick with the charset that the C
standard guarantees is available. For pretty good portability stick to
ASCII. Both of these solutions requires you to use "(R)" sequence
instead of the glyph you're trying to encode. International newsfeeds
like Reuters use this option because it works extremely well.

If you *really* want to use the (R) glyph, people that don't care about
international text usually use one of the latin-1 like encodings (the
Windows-1252 codepage is mostly abused for this purpose because most
people are ignorant of the issue) but if you want to be a good citizen
use UTF-8.

Mar 28 '06 #12

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

Similar topics

2
by: Tobias Erbsland | last post by:
Hello I have a problem with an error message. I created a new class (as OpenSSL helper): class DataBlock { public: DataBlock(); DataBlock( unsigned int size );
4
by: John Devereux | last post by:
Hi, I would like some advice on whether I should be using plain "chars" for strings. I have instead been using "unsigned char" in my code (for embedded systems). In general the strings contain...
10
by: fei.liu | last post by:
Consider the following sample code char * ptr = "hello"; char carray = "hello"; int main(void){ } What does the standard have to say about the storage requirement about ptr and carray? Is...
26
by: =?gb2312?B?wNbA1rTzzOzKpg==?= | last post by:
i wrote: ----------------------------------------------------------------------- ---------------------------------------- unsigned char * p = reinterpret_cast<unsigned char *>("abcdg");...
15
by: arnuld | last post by:
-------- PROGRAMME ----------- /* Stroustrup, 5.6 Structures STATEMENT: this programmes *tries* to do do this in 3 parts: 1.) it creates a "struct", named "jd", of type "address". 2. it...
20
by: liujiaping | last post by:
I'm confused about the program below: int main(int argc, char* argv) { char str1 = "abc"; char str2 = "abc"; const char str3 = "abc"; const char str4 = "abc"; const char* str5 = "abc";
11
by: Lothar Behrens | last post by:
Hi, I have selected strtok to be used in my string replacement function. But I lost the last token, if there is one. This string would be replaced select "name", "vorname", "userid",...
9
by: anon.asdf | last post by:
In terms of efficieny: Is it better to use multiple putchar()'s after one another as one gets to new char's OR is it better to collect the characters to a char-array first, and then use...
3
by: Mahesh | last post by:
#include <stdio.h> #include <string.h> #include <malloc.h> int main(void) { int key = 120; char *s = "String to Encrypt using XOR"; char *ss = s; char echar; char dchar;
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
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,...

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.