Character Problem

Hi Everyone,

Here is another thing that I can't figure out.

I am writing a text to a file
File.WriteString(_T("2 x 3 = 6    3 x 2 = 6    6 � 2 = 3     6 � 3 =
2.\n"));

But when I read it back I get

2 x 3 = 6    3 x 2 = 6    6 2 = 3     6? 3 = 2

I am not sure why the � (character 0xF7) is not showing up correctly?

The funny thing is that the first one doesn't even show up, and the second
one shows up as a block.

Any solution to this?

Ali




0
AliR3470 (3235)
5/1/2006 9:40:13 PM
vc.mfc 33608 articles. 0 followers. Follow

16 Replies
563 Views

Similar Articles

[PageSpeed] 44

Hi Ali,

Looks like a font problem, but is the character in question stored in the 
file correctly? And are the proper chars in the string when it's read back 
in?

Tom

"AliR" <AliR@online.nospam> wrote in message 
news:4456806b$0$14865$a8266bb1@reader.corenews.com...
> Hi Everyone,
>
> Here is another thing that I can't figure out.
>
> I am writing a text to a file
> File.WriteString(_T("2 x 3 = 6    3 x 2 = 6    6 � 2 = 3     6 � 3 =
> 2.\n"));
>
> But when I read it back I get
>
> 2 x 3 = 6    3 x 2 = 6    6 2 = 3     6? 3 = 2
>
> I am not sure why the � (character 0xF7) is not showing up correctly?
>
> The funny thing is that the first one doesn't even show up, and the second
> one shows up as a block.
>
> Any solution to this?
>
> Ali
>
>
>
> 


0
tserface (3860)
5/1/2006 10:29:04 PM
Hi Ali,

I think Tom's suggestion is reasonable. We can check the file content to 
see whether the characters are correctly stored in it. Also, when read it 
back again, we can check the binary memory of the string to see whether 
those "?" chars are still represented by their correct binary value 
(0xF7?).  

Also, you need to make sure the charset you used to read and write the file 
is the same, since (0xF7) is not a ASCII char, different charset will have 
different codepoint (binary value) to represent it.

Please feel free to post here if there is anything else we can help.

Regards,

Steven Cheng
Microsoft Online Community Support


==================================================

When responding to posts, please "Reply to Group" via your newsreader so 
that others may learn and benefit from your issue. 

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.



Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no 
rights.)

0
stcheng1 (64)
5/2/2006 7:07:49 AM
Hi Tom,

I misrepresented the problem a little.  I am writing this out to an XML
file.  The XML parser complains that the character (� 0xF7) is invalid.

When I open the file in a text editor like notepad or VS IDE, the text
doesn't look like it should, but if I open in a hex editor, I can see that
the chars are both 0xF7.

If I open the file in a text editor again, and copy/paste the character out
of Character Map program into the text file and save it. Then everything
works fine with the XML parser, and when I open it in the Hex editor the
value of the chars are 0xC3B7.

What I can't understand is what is the difference between what I am writing
to the file, and what get's pasted when I paste the char from character map
program.

AliR.
"Tom Serface" <tserface@msn.com> wrote in message
news:uaNDm6WbGHA.536@TK2MSFTNGP02.phx.gbl...
> Hi Ali,
>
> Looks like a font problem, but is the character in question stored in the
> file correctly? And are the proper chars in the string when it's read back
> in?
>
> Tom
>
> "AliR" <AliR@online.nospam> wrote in message
> news:4456806b$0$14865$a8266bb1@reader.corenews.com...
> > Hi Everyone,
> >
> > Here is another thing that I can't figure out.
> >
> > I am writing a text to a file
> > File.WriteString(_T("2 x 3 = 6    3 x 2 = 6    6 � 2 = 3     6 � 3 =
> > 2.\n"));
> >
> > But when I read it back I get
> >
> > 2 x 3 = 6    3 x 2 = 6    6 2 = 3     6? 3 = 2
> >
> > I am not sure why the � (character 0xF7) is not showing up correctly?
> >
> > The funny thing is that the first one doesn't even show up, and the
second
> > one shows up as a block.
> >
> > Any solution to this?
> >
> > Ali
> >
> >
> >
> >
>
>


0
AliR3470 (3235)
5/2/2006 3:16:05 PM
Hi Steven,

I am not sure I flow what you mean by making sure that the charset is same.

AliR.

"Steven Cheng[MSFT]" <stcheng@online.microsoft.com> wrote in message
news:QQZalcbbGHA.3900@TK2MSFTNGXA01.phx.gbl...
> Hi Ali,
>
> I think Tom's suggestion is reasonable. We can check the file content to
> see whether the characters are correctly stored in it. Also, when read it
> back again, we can check the binary memory of the string to see whether
> those "?" chars are still represented by their correct binary value
> (0xF7?).
>
> Also, you need to make sure the charset you used to read and write the
file
> is the same, since (0xF7) is not a ASCII char, different charset will have
> different codepoint (binary value) to represent it.
>
> Please feel free to post here if there is anything else we can help.
>
> Regards,
>
> Steven Cheng
> Microsoft Online Community Support
>
>
> ==================================================
>
> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
>
> ==================================================
>
>
> This posting is provided "AS IS" with no warranties, and confers no
rights.
>
>
>
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>


0
AliR3470 (3235)
5/2/2006 3:17:52 PM
OK, I don't know which parser you are using, but with Xerces I had a problem 
with high-bits being set unless I either compiled in Unicode or set the 
"embedding=" string to something that was 16 bit like ISO8859-1.  Could be 
the parser is replacing the character that it doesn't recognize with a 
default character.

Tom

"AliR" <AliR@online.nospam> wrote in message 
news:445777e3$0$14891$a8266bb1@reader.corenews.com...
> Hi Tom,
>
> I misrepresented the problem a little.  I am writing this out to an XML
> file.  The XML parser complains that the character (� 0xF7) is invalid.
>
> When I open the file in a text editor like notepad or VS IDE, the text
> doesn't look like it should, but if I open in a hex editor, I can see that
> the chars are both 0xF7.
>
> If I open the file in a text editor again, and copy/paste the character 
> out
> of Character Map program into the text file and save it. Then everything
> works fine with the XML parser, and when I open it in the Hex editor the
> value of the chars are 0xC3B7.
>
> What I can't understand is what is the difference between what I am 
> writing
> to the file, and what get's pasted when I paste the char from character 
> map
> program.
>
> AliR.


0
tserface (3860)
5/2/2006 3:27:03 PM
I am opening the XML file in IE, trasforming it using XSLT.

Try this. Create a dialog based application, put a button on the dialog, and
place this code in it's handler.  Run the app, and press the button, then
open the resulting txt file in Visual Studio IDE.

CStdioFile File;

File.Open(_T("Text.txt"),CFile::modeCreate|CFile::modeWrite);

File.WriteString(_T("<?xml version=\"1.0\"?>\n"));

File.WriteString(_T("<?xml-stylesheet href=\"aypClass.xsl\"
type=\"text/xsl\" ?>\n"));

File.WriteString(_T("<!DOCTYPE standardReport [\n"));

File.WriteString(_T(" <!ENTITY % xhtml-lat1 SYSTEM \"xhtml-lat1.ent\"
>\n"));

File.WriteString(_T(" <!ENTITY % xhtml-special SYSTEM \"xhtml-special.ent\"
>\n"));

File.WriteString(_T(" <!ENTITY % xhtml-symbol SYSTEM \"xhtml-symbol.ent\"
>\n"));

File.WriteString(_T(" %xhtml-lat1;\n"));

File.WriteString(_T(" %xhtml-special;\n"));

File.WriteString(_T(" %xhtml-symbol;\n"));

File.WriteString(_T("]>\n"));

File.WriteString(_T("<standardReport>\n"));

File.WriteString(_T(" <AYPClass percentOver=\"75\">\n"));

File.WriteString(_T(" <header>\n"));

File.WriteString(_T(" <teachers>\n"));

File.WriteString(_T(" <teacher>Ali Rafiee</teacher>\n"));

File.WriteString(_T(" </teachers>\n"));

File.WriteString(_T(" <class>My Class</class>\n"));

File.WriteString(_T(" <activityInfo>\n"));

File.WriteString(_T(" <grades>\n"));

File.WriteString(_T(" <grade>3</grade>\n"));

File.WriteString(_T(" </grades>\n"));

File.WriteString(_T(" <subjects>\n"));

File.WriteString(_T(" <subject>Mathematics</subject>\n"));

File.WriteString(_T(" </subjects>\n"));

File.WriteString(_T(" <beginningDate>05/01/2006</beginningDate>\n"));

File.WriteString(_T(" <endingDate>05/01/2006</endingDate>\n"));

File.WriteString(_T(" <reportDate>05/01/2006</reportDate>\n"));

File.WriteString(_T(" </activityInfo>\n"));

File.WriteString(_T(" </header>\n"));

File.WriteString(_T(" <body>\n"));

File.WriteString(_T(" <statementTables>\n"));

File.WriteString(_T(" <statementTable>\n"));

File.WriteString(_T(" <standard code=\"111.15.3.6.(C)\" recordID=\"272887\"
parentID=\"272884\" percentAnswered=\"null\" percentAboveUserValue=\"null\"
questionCount=\"0\" description=\"identify patterns in related
multiplication and division sentences (fact families) such as 2 x 3 = 6 3 x
2 = 6 6 � 2 = 3 6 � 3 = 2.\"/>\n"));

File.WriteString(_T(" </statementTable>\n"));

File.WriteString(_T(" </statementTables>\n"));

File.WriteString(_T(" </body>\n"));

File.WriteString(_T(" </AYPClass>\n"));

File.WriteString(_T("</standardReport>\n"));

File.Close();


AliR.
P.S. One thing that is bugging me is that just now I removed all the lines
in this method execpt for the line that outputs the 0xF7 chars, without all
the other lines it shows up fine in the file.

"Tom Serface" <tserface@msn.com> wrote in message
news:eL50czfbGHA.1856@TK2MSFTNGP03.phx.gbl...
> OK, I don't know which parser you are using, but with Xerces I had a
problem
> with high-bits being set unless I either compiled in Unicode or set the
> "embedding=" string to something that was 16 bit like ISO8859-1.  Could be
> the parser is replacing the character that it doesn't recognize with a
> default character.
>
> Tom
>
> "AliR" <AliR@online.nospam> wrote in message
> news:445777e3$0$14891$a8266bb1@reader.corenews.com...
> > Hi Tom,
> >
> > I misrepresented the problem a little.  I am writing this out to an XML
> > file.  The XML parser complains that the character (� 0xF7) is invalid.
> >
> > When I open the file in a text editor like notepad or VS IDE, the text
> > doesn't look like it should, but if I open in a hex editor, I can see
that
> > the chars are both 0xF7.
> >
> > If I open the file in a text editor again, and copy/paste the character
> > out
> > of Character Map program into the text file and save it. Then everything
> > works fine with the XML parser, and when I open it in the Hex editor the
> > value of the chars are 0xC3B7.
> >
> > What I can't understand is what is the difference between what I am
> > writing
> > to the file, and what get's pasted when I paste the char from character
> > map
> > program.
> >
> > AliR.
>
>


0
AliR3470 (3235)
5/2/2006 3:39:05 PM
Ok now I know that it the XML parser that is doing it.  If I remove the line
that is writing <?xml version="1.0"?> to the file, and open the file in VS
IDE then it looks fine.

Why is that?

I have tried the code I posted, with the projects Character Set set to both
Use Unicode, and Use Multibyte. neigther one works.

I am starting to think that I would have to use come kind of tag to or
something.

AliR.

"AliR" <AliR@online.nospam> wrote in message
news:44577d45$0$14869$a8266bb1@reader.corenews.com...
> I am opening the XML file in IE, trasforming it using XSLT.
>
> Try this. Create a dialog based application, put a button on the dialog,
and
> place this code in it's handler.  Run the app, and press the button, then
> open the resulting txt file in Visual Studio IDE.
>
> CStdioFile File;
>
> File.Open(_T("Text.txt"),CFile::modeCreate|CFile::modeWrite);
>
> File.WriteString(_T("<?xml version=\"1.0\"?>\n"));
>
> File.WriteString(_T("<?xml-stylesheet href=\"aypClass.xsl\"
> type=\"text/xsl\" ?>\n"));
>
> File.WriteString(_T("<!DOCTYPE standardReport [\n"));
>
> File.WriteString(_T(" <!ENTITY % xhtml-lat1 SYSTEM \"xhtml-lat1.ent\"
> >\n"));
>
> File.WriteString(_T(" <!ENTITY % xhtml-special SYSTEM
\"xhtml-special.ent\"
> >\n"));
>
> File.WriteString(_T(" <!ENTITY % xhtml-symbol SYSTEM \"xhtml-symbol.ent\"
> >\n"));
>
> File.WriteString(_T(" %xhtml-lat1;\n"));
>
> File.WriteString(_T(" %xhtml-special;\n"));
>
> File.WriteString(_T(" %xhtml-symbol;\n"));
>
> File.WriteString(_T("]>\n"));
>
> File.WriteString(_T("<standardReport>\n"));
>
> File.WriteString(_T(" <AYPClass percentOver=\"75\">\n"));
>
> File.WriteString(_T(" <header>\n"));
>
> File.WriteString(_T(" <teachers>\n"));
>
> File.WriteString(_T(" <teacher>Ali Rafiee</teacher>\n"));
>
> File.WriteString(_T(" </teachers>\n"));
>
> File.WriteString(_T(" <class>My Class</class>\n"));
>
> File.WriteString(_T(" <activityInfo>\n"));
>
> File.WriteString(_T(" <grades>\n"));
>
> File.WriteString(_T(" <grade>3</grade>\n"));
>
> File.WriteString(_T(" </grades>\n"));
>
> File.WriteString(_T(" <subjects>\n"));
>
> File.WriteString(_T(" <subject>Mathematics</subject>\n"));
>
> File.WriteString(_T(" </subjects>\n"));
>
> File.WriteString(_T(" <beginningDate>05/01/2006</beginningDate>\n"));
>
> File.WriteString(_T(" <endingDate>05/01/2006</endingDate>\n"));
>
> File.WriteString(_T(" <reportDate>05/01/2006</reportDate>\n"));
>
> File.WriteString(_T(" </activityInfo>\n"));
>
> File.WriteString(_T(" </header>\n"));
>
> File.WriteString(_T(" <body>\n"));
>
> File.WriteString(_T(" <statementTables>\n"));
>
> File.WriteString(_T(" <statementTable>\n"));
>
> File.WriteString(_T(" <standard code=\"111.15.3.6.(C)\"
recordID=\"272887\"
> parentID=\"272884\" percentAnswered=\"null\"
percentAboveUserValue=\"null\"
> questionCount=\"0\" description=\"identify patterns in related
> multiplication and division sentences (fact families) such as 2 x 3 = 6 3
x
> 2 = 6 6 � 2 = 3 6 � 3 = 2.\"/>\n"));
>
> File.WriteString(_T(" </statementTable>\n"));
>
> File.WriteString(_T(" </statementTables>\n"));
>
> File.WriteString(_T(" </body>\n"));
>
> File.WriteString(_T(" </AYPClass>\n"));
>
> File.WriteString(_T("</standardReport>\n"));
>
> File.Close();
>
>
> AliR.
> P.S. One thing that is bugging me is that just now I removed all the lines
> in this method execpt for the line that outputs the 0xF7 chars, without
all
> the other lines it shows up fine in the file.
>
> "Tom Serface" <tserface@msn.com> wrote in message
> news:eL50czfbGHA.1856@TK2MSFTNGP03.phx.gbl...
> > OK, I don't know which parser you are using, but with Xerces I had a
> problem
> > with high-bits being set unless I either compiled in Unicode or set the
> > "embedding=" string to something that was 16 bit like ISO8859-1.  Could
be
> > the parser is replacing the character that it doesn't recognize with a
> > default character.
> >
> > Tom
> >
> > "AliR" <AliR@online.nospam> wrote in message
> > news:445777e3$0$14891$a8266bb1@reader.corenews.com...
> > > Hi Tom,
> > >
> > > I misrepresented the problem a little.  I am writing this out to an
XML
> > > file.  The XML parser complains that the character (� 0xF7) is
invalid.
> > >
> > > When I open the file in a text editor like notepad or VS IDE, the text
> > > doesn't look like it should, but if I open in a hex editor, I can see
> that
> > > the chars are both 0xF7.
> > >
> > > If I open the file in a text editor again, and copy/paste the
character
> > > out
> > > of Character Map program into the text file and save it. Then
everything
> > > works fine with the XML parser, and when I open it in the Hex editor
the
> > > value of the chars are 0xC3B7.
> > >
> > > What I can't understand is what is the difference between what I am
> > > writing
> > > to the file, and what get's pasted when I paste the char from
character
> > > map
> > > program.
> > >
> > > AliR.
> >
> >
>
>


0
AliR3470 (3235)
5/2/2006 4:27:57 PM
Try putting the string "encoding="ISO8859-1" in the header to see if that 
helps.

Like this:

<?xml version="1.0" encoding="ISO8859-1"?>

At least then you'll know if it's got something to do with parsing and the 
parser thinking that you're using 8 bit.

Tom

"AliR" <AliR@online.nospam> wrote in message 
news:445788b9$0$14924$a8266bb1@reader.corenews.com...
> Ok now I know that it the XML parser that is doing it.  If I remove the 
> line
> that is writing <?xml version="1.0"?> to the file, and open the file in VS
> IDE then it looks fine.
>
> Why is that?
>
> I have tried the code I posted, with the projects Character Set set to 
> both
> Use Unicode, and Use Multibyte. neigther one works.
>
> I am starting to think that I would have to use come kind of tag to or
> something.
>
> AliR.
>
> "AliR" <AliR@online.nospam> wrote in message
> news:44577d45$0$14869$a8266bb1@reader.corenews.com...
>> I am opening the XML file in IE, trasforming it using XSLT.
>>
>> Try this. Create a dialog based application, put a button on the dialog,
> and
>> place this code in it's handler.  Run the app, and press the button, then
>> open the resulting txt file in Visual Studio IDE.
>>
>> CStdioFile File;
>>
>> File.Open(_T("Text.txt"),CFile::modeCreate|CFile::modeWrite);
>>
>> File.WriteString(_T("<?xml version=\"1.0\"?>\n"));
>>
>> File.WriteString(_T("<?xml-stylesheet href=\"aypClass.xsl\"
>> type=\"text/xsl\" ?>\n"));
>>
>> File.WriteString(_T("<!DOCTYPE standardReport [\n"));
>>
>> File.WriteString(_T(" <!ENTITY % xhtml-lat1 SYSTEM \"xhtml-lat1.ent\"
>> >\n"));
>>
>> File.WriteString(_T(" <!ENTITY % xhtml-special SYSTEM
> \"xhtml-special.ent\"
>> >\n"));
>>
>> File.WriteString(_T(" <!ENTITY % xhtml-symbol SYSTEM \"xhtml-symbol.ent\"
>> >\n"));
>>
>> File.WriteString(_T(" %xhtml-lat1;\n"));
>>
>> File.WriteString(_T(" %xhtml-special;\n"));
>>
>> File.WriteString(_T(" %xhtml-symbol;\n"));
>>
>> File.WriteString(_T("]>\n"));
>>
>> File.WriteString(_T("<standardReport>\n"));
>>
>> File.WriteString(_T(" <AYPClass percentOver=\"75\">\n"));
>>
>> File.WriteString(_T(" <header>\n"));
>>
>> File.WriteString(_T(" <teachers>\n"));
>>
>> File.WriteString(_T(" <teacher>Ali Rafiee</teacher>\n"));
>>
>> File.WriteString(_T(" </teachers>\n"));
>>
>> File.WriteString(_T(" <class>My Class</class>\n"));
>>
>> File.WriteString(_T(" <activityInfo>\n"));
>>
>> File.WriteString(_T(" <grades>\n"));
>>
>> File.WriteString(_T(" <grade>3</grade>\n"));
>>
>> File.WriteString(_T(" </grades>\n"));
>>
>> File.WriteString(_T(" <subjects>\n"));
>>
>> File.WriteString(_T(" <subject>Mathematics</subject>\n"));
>>
>> File.WriteString(_T(" </subjects>\n"));
>>
>> File.WriteString(_T(" <beginningDate>05/01/2006</beginningDate>\n"));
>>
>> File.WriteString(_T(" <endingDate>05/01/2006</endingDate>\n"));
>>
>> File.WriteString(_T(" <reportDate>05/01/2006</reportDate>\n"));
>>
>> File.WriteString(_T(" </activityInfo>\n"));
>>
>> File.WriteString(_T(" </header>\n"));
>>
>> File.WriteString(_T(" <body>\n"));
>>
>> File.WriteString(_T(" <statementTables>\n"));
>>
>> File.WriteString(_T(" <statementTable>\n"));
>>
>> File.WriteString(_T(" <standard code=\"111.15.3.6.(C)\"
> recordID=\"272887\"
>> parentID=\"272884\" percentAnswered=\"null\"
> percentAboveUserValue=\"null\"
>> questionCount=\"0\" description=\"identify patterns in related
>> multiplication and division sentences (fact families) such as 2 x 3 = 6 3
> x
>> 2 = 6 6 � 2 = 3 6 � 3 = 2.\"/>\n"));
>>
>> File.WriteString(_T(" </statementTable>\n"));
>>
>> File.WriteString(_T(" </statementTables>\n"));
>>
>> File.WriteString(_T(" </body>\n"));
>>
>> File.WriteString(_T(" </AYPClass>\n"));
>>
>> File.WriteString(_T("</standardReport>\n"));
>>
>> File.Close();
>>
>>
>> AliR.
>> P.S. One thing that is bugging me is that just now I removed all the 
>> lines
>> in this method execpt for the line that outputs the 0xF7 chars, without
> all
>> the other lines it shows up fine in the file.
>>
>> "Tom Serface" <tserface@msn.com> wrote in message
>> news:eL50czfbGHA.1856@TK2MSFTNGP03.phx.gbl...
>> > OK, I don't know which parser you are using, but with Xerces I had a
>> problem
>> > with high-bits being set unless I either compiled in Unicode or set the
>> > "embedding=" string to something that was 16 bit like ISO8859-1.  Could
> be
>> > the parser is replacing the character that it doesn't recognize with a
>> > default character.
>> >
>> > Tom
>> >
>> > "AliR" <AliR@online.nospam> wrote in message
>> > news:445777e3$0$14891$a8266bb1@reader.corenews.com...
>> > > Hi Tom,
>> > >
>> > > I misrepresented the problem a little.  I am writing this out to an
> XML
>> > > file.  The XML parser complains that the character (� 0xF7) is
> invalid.
>> > >
>> > > When I open the file in a text editor like notepad or VS IDE, the 
>> > > text
>> > > doesn't look like it should, but if I open in a hex editor, I can see
>> that
>> > > the chars are both 0xF7.
>> > >
>> > > If I open the file in a text editor again, and copy/paste the
> character
>> > > out
>> > > of Character Map program into the text file and save it. Then
> everything
>> > > works fine with the XML parser, and when I open it in the Hex editor
> the
>> > > value of the chars are 0xC3B7.
>> > >
>> > > What I can't understand is what is the difference between what I am
>> > > writing
>> > > to the file, and what get's pasted when I paste the char from
> character
>> > > map
>> > > program.
>> > >
>> > > AliR.
>> >
>> >
>>
>>
>
> 


0
tserface (3860)
5/2/2006 4:36:56 PM
Tom,

I love you man!  How did you find the solution to this.  I searched up and
down trying to find something.

AliR.

"Tom Serface" <tserface@msn.com> wrote in message
news:%235qWfagbGHA.2456@TK2MSFTNGP04.phx.gbl...
> Try putting the string "encoding="ISO8859-1" in the header to see if that
> helps.
>
> Like this:
>
> <?xml version="1.0" encoding="ISO8859-1"?>
>
> At least then you'll know if it's got something to do with parsing and the
> parser thinking that you're using 8 bit.
>
> Tom
>
> "AliR" <AliR@online.nospam> wrote in message
> news:445788b9$0$14924$a8266bb1@reader.corenews.com...
> > Ok now I know that it the XML parser that is doing it.  If I remove the
> > line
> > that is writing <?xml version="1.0"?> to the file, and open the file in
VS
> > IDE then it looks fine.
> >
> > Why is that?
> >
> > I have tried the code I posted, with the projects Character Set set to
> > both
> > Use Unicode, and Use Multibyte. neigther one works.
> >
> > I am starting to think that I would have to use come kind of tag to or
> > something.
> >
> > AliR.
> >
> > "AliR" <AliR@online.nospam> wrote in message
> > news:44577d45$0$14869$a8266bb1@reader.corenews.com...
> >> I am opening the XML file in IE, trasforming it using XSLT.
> >>
> >> Try this. Create a dialog based application, put a button on the
dialog,
> > and
> >> place this code in it's handler.  Run the app, and press the button,
then
> >> open the resulting txt file in Visual Studio IDE.
> >>
> >> CStdioFile File;
> >>
> >> File.Open(_T("Text.txt"),CFile::modeCreate|CFile::modeWrite);
> >>
> >> File.WriteString(_T("<?xml version=\"1.0\"?>\n"));
> >>
> >> File.WriteString(_T("<?xml-stylesheet href=\"aypClass.xsl\"
> >> type=\"text/xsl\" ?>\n"));
> >>
> >> File.WriteString(_T("<!DOCTYPE standardReport [\n"));
> >>
> >> File.WriteString(_T(" <!ENTITY % xhtml-lat1 SYSTEM \"xhtml-lat1.ent\"
> >> >\n"));
> >>
> >> File.WriteString(_T(" <!ENTITY % xhtml-special SYSTEM
> > \"xhtml-special.ent\"
> >> >\n"));
> >>
> >> File.WriteString(_T(" <!ENTITY % xhtml-symbol SYSTEM
\"xhtml-symbol.ent\"
> >> >\n"));
> >>
> >> File.WriteString(_T(" %xhtml-lat1;\n"));
> >>
> >> File.WriteString(_T(" %xhtml-special;\n"));
> >>
> >> File.WriteString(_T(" %xhtml-symbol;\n"));
> >>
> >> File.WriteString(_T("]>\n"));
> >>
> >> File.WriteString(_T("<standardReport>\n"));
> >>
> >> File.WriteString(_T(" <AYPClass percentOver=\"75\">\n"));
> >>
> >> File.WriteString(_T(" <header>\n"));
> >>
> >> File.WriteString(_T(" <teachers>\n"));
> >>
> >> File.WriteString(_T(" <teacher>Ali Rafiee</teacher>\n"));
> >>
> >> File.WriteString(_T(" </teachers>\n"));
> >>
> >> File.WriteString(_T(" <class>My Class</class>\n"));
> >>
> >> File.WriteString(_T(" <activityInfo>\n"));
> >>
> >> File.WriteString(_T(" <grades>\n"));
> >>
> >> File.WriteString(_T(" <grade>3</grade>\n"));
> >>
> >> File.WriteString(_T(" </grades>\n"));
> >>
> >> File.WriteString(_T(" <subjects>\n"));
> >>
> >> File.WriteString(_T(" <subject>Mathematics</subject>\n"));
> >>
> >> File.WriteString(_T(" </subjects>\n"));
> >>
> >> File.WriteString(_T(" <beginningDate>05/01/2006</beginningDate>\n"));
> >>
> >> File.WriteString(_T(" <endingDate>05/01/2006</endingDate>\n"));
> >>
> >> File.WriteString(_T(" <reportDate>05/01/2006</reportDate>\n"));
> >>
> >> File.WriteString(_T(" </activityInfo>\n"));
> >>
> >> File.WriteString(_T(" </header>\n"));
> >>
> >> File.WriteString(_T(" <body>\n"));
> >>
> >> File.WriteString(_T(" <statementTables>\n"));
> >>
> >> File.WriteString(_T(" <statementTable>\n"));
> >>
> >> File.WriteString(_T(" <standard code=\"111.15.3.6.(C)\"
> > recordID=\"272887\"
> >> parentID=\"272884\" percentAnswered=\"null\"
> > percentAboveUserValue=\"null\"
> >> questionCount=\"0\" description=\"identify patterns in related
> >> multiplication and division sentences (fact families) such as 2 x 3 = 6
3
> > x
> >> 2 = 6 6 � 2 = 3 6 � 3 = 2.\"/>\n"));
> >>
> >> File.WriteString(_T(" </statementTable>\n"));
> >>
> >> File.WriteString(_T(" </statementTables>\n"));
> >>
> >> File.WriteString(_T(" </body>\n"));
> >>
> >> File.WriteString(_T(" </AYPClass>\n"));
> >>
> >> File.WriteString(_T("</standardReport>\n"));
> >>
> >> File.Close();
> >>
> >>
> >> AliR.
> >> P.S. One thing that is bugging me is that just now I removed all the
> >> lines
> >> in this method execpt for the line that outputs the 0xF7 chars, without
> > all
> >> the other lines it shows up fine in the file.
> >>
> >> "Tom Serface" <tserface@msn.com> wrote in message
> >> news:eL50czfbGHA.1856@TK2MSFTNGP03.phx.gbl...
> >> > OK, I don't know which parser you are using, but with Xerces I had a
> >> problem
> >> > with high-bits being set unless I either compiled in Unicode or set
the
> >> > "embedding=" string to something that was 16 bit like ISO8859-1.
Could
> > be
> >> > the parser is replacing the character that it doesn't recognize with
a
> >> > default character.
> >> >
> >> > Tom
> >> >
> >> > "AliR" <AliR@online.nospam> wrote in message
> >> > news:445777e3$0$14891$a8266bb1@reader.corenews.com...
> >> > > Hi Tom,
> >> > >
> >> > > I misrepresented the problem a little.  I am writing this out to an
> > XML
> >> > > file.  The XML parser complains that the character (� 0xF7) is
> > invalid.
> >> > >
> >> > > When I open the file in a text editor like notepad or VS IDE, the
> >> > > text
> >> > > doesn't look like it should, but if I open in a hex editor, I can
see
> >> that
> >> > > the chars are both 0xF7.
> >> > >
> >> > > If I open the file in a text editor again, and copy/paste the
> > character
> >> > > out
> >> > > of Character Map program into the text file and save it. Then
> > everything
> >> > > works fine with the XML parser, and when I open it in the Hex
editor
> > the
> >> > > value of the chars are 0xC3B7.
> >> > >
> >> > > What I can't understand is what is the difference between what I am
> >> > > writing
> >> > > to the file, and what get's pasted when I paste the char from
> > character
> >> > > map
> >> > > program.
> >> > >
> >> > > AliR.
> >> >
> >> >
> >>
> >>
> >
> >
>
>


0
AliR3470 (3235)
5/2/2006 4:43:07 PM
When you write � it really has no meaning.  No more than "A" has meaning.  The only reason
code 0x41 displays as "A" is that all fonts that support the Latin alphabet have the glyph
of two diagonal lines with a vertex at the top of the character cell and a horizontal bar
about halfway down that connects the two lines.  So the question really can't be answered
unless the font being used is known, and you haven't specified that.  In addition, you
have shown the string as _T("") which suggests the possibility that you have a Unicode
app.  You have not said how you read it back, or how you are displaying it.  You will need
to supply all this information before we can really give an answer.
					joe

On Mon, 1 May 2006 16:40:13 -0500, "AliR" <AliR@online.nospam> wrote:

>Hi Everyone,
>
>Here is another thing that I can't figure out.
>
>I am writing a text to a file
>File.WriteString(_T("2 x 3 = 6    3 x 2 = 6    6 � 2 = 3     6 � 3 =
>2.\n"));
>
>But when I read it back I get
>
>2 x 3 = 6    3 x 2 = 6    6 2 = 3     6? 3 = 2
>
>I am not sure why the � (character 0xF7) is not showing up correctly?
>
>The funny thing is that the first one doesn't even show up, and the second
>one shows up as a block.
>
>Any solution to this?
>
>Ali
>
>
>
Joseph M. Newcomer [MVP]
email: newcomer@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
-- 
NewsGuy.Com 30Gb $9.95 Carry Forward and On Demand Bandwidth
0
newcomer (15972)
5/2/2006 5:34:47 PM
� is an asci character that is the same in most character fonts (0xF7).

AliR.

"Joseph M. Newcomer" <newcomer@flounder.com> wrote in message
news:po5f52hl5vtemqnk6adjfpd0rrvtarqpma@4ax.com...
> When you write � it really has no meaning.  No more than "A" has meaning.
The only reason
> code 0x41 displays as "A" is that all fonts that support the Latin
alphabet have the glyph
> of two diagonal lines with a vertex at the top of the character cell and a
horizontal bar
> about halfway down that connects the two lines.  So the question really
can't be answered
> unless the font being used is known, and you haven't specified that.  In
addition, you
> have shown the string as _T("") which suggests the possibility that you
have a Unicode
> app.  You have not said how you read it back, or how you are displaying
it.  You will need
> to supply all this information before we can really give an answer.
> joe
>
> On Mon, 1 May 2006 16:40:13 -0500, "AliR" <AliR@online.nospam> wrote:
>
> >Hi Everyone,
> >
> >Here is another thing that I can't figure out.
> >
> >I am writing a text to a file
> >File.WriteString(_T("2 x 3 = 6    3 x 2 = 6    6 � 2 = 3     6 � 3 =
> >2.\n"));
> >
> >But when I read it back I get
> >
> >2 x 3 = 6    3 x 2 = 6    6 2 = 3     6? 3 = 2
> >
> >I am not sure why the � (character 0xF7) is not showing up correctly?
> >
> >The funny thing is that the first one doesn't even show up, and the
second
> >one shows up as a block.
> >
> >Any solution to this?
> >
> >Ali
> >
> >
> >
> Joseph M. Newcomer [MVP]
> email: newcomer@flounder.com
> Web: http://www.flounder.com
> MVP Tips: http://www.flounder.com/mvp_tips.htm
> -- 
> NewsGuy.Com 30Gb $9.95 Carry Forward and On Demand Bandwidth


0
AliR3470 (3235)
5/2/2006 6:59:11 PM
Tom,

I have a question.  I searched around and saw that the reason I have to
specify ISO8859-1 is because XML by default assumes that the text is
Unicode.

Unicode is a gray area for me.  While I was doing the test app (the code I
posted earlier), I specified that the project is unicode.  And I thought
that File.WriteString(_T("Some Text")); would output unicode!

What am I missing here?

AliR.


"Tom Serface" <tserface@msn.com> wrote in message
news:%235qWfagbGHA.2456@TK2MSFTNGP04.phx.gbl...
> Try putting the string "encoding="ISO8859-1" in the header to see if that
> helps.
>
> Like this:
>
> <?xml version="1.0" encoding="ISO8859-1"?>
>
> At least then you'll know if it's got something to do with parsing and the
> parser thinking that you're using 8 bit.
>
> Tom
>
> "AliR" <AliR@online.nospam> wrote in message
> news:445788b9$0$14924$a8266bb1@reader.corenews.com...
> > Ok now I know that it the XML parser that is doing it.  If I remove the
> > line
> > that is writing <?xml version="1.0"?> to the file, and open the file in
VS
> > IDE then it looks fine.
> >
> > Why is that?
> >
> > I have tried the code I posted, with the projects Character Set set to
> > both
> > Use Unicode, and Use Multibyte. neigther one works.
> >
> > I am starting to think that I would have to use come kind of tag to or
> > something.
> >
> > AliR.
> >
> > "AliR" <AliR@online.nospam> wrote in message
> > news:44577d45$0$14869$a8266bb1@reader.corenews.com...
> >> I am opening the XML file in IE, trasforming it using XSLT.
> >>
> >> Try this. Create a dialog based application, put a button on the
dialog,
> > and
> >> place this code in it's handler.  Run the app, and press the button,
then
> >> open the resulting txt file in Visual Studio IDE.
> >>
> >> CStdioFile File;
> >>
> >> File.Open(_T("Text.txt"),CFile::modeCreate|CFile::modeWrite);
> >>
> >> File.WriteString(_T("<?xml version=\"1.0\"?>\n"));
> >>
> >> File.WriteString(_T("<?xml-stylesheet href=\"aypClass.xsl\"
> >> type=\"text/xsl\" ?>\n"));
> >>
> >> File.WriteString(_T("<!DOCTYPE standardReport [\n"));
> >>
> >> File.WriteString(_T(" <!ENTITY % xhtml-lat1 SYSTEM \"xhtml-lat1.ent\"
> >> >\n"));
> >>
> >> File.WriteString(_T(" <!ENTITY % xhtml-special SYSTEM
> > \"xhtml-special.ent\"
> >> >\n"));
> >>
> >> File.WriteString(_T(" <!ENTITY % xhtml-symbol SYSTEM
\"xhtml-symbol.ent\"
> >> >\n"));
> >>
> >> File.WriteString(_T(" %xhtml-lat1;\n"));
> >>
> >> File.WriteString(_T(" %xhtml-special;\n"));
> >>
> >> File.WriteString(_T(" %xhtml-symbol;\n"));
> >>
> >> File.WriteString(_T("]>\n"));
> >>
> >> File.WriteString(_T("<standardReport>\n"));
> >>
> >> File.WriteString(_T(" <AYPClass percentOver=\"75\">\n"));
> >>
> >> File.WriteString(_T(" <header>\n"));
> >>
> >> File.WriteString(_T(" <teachers>\n"));
> >>
> >> File.WriteString(_T(" <teacher>Ali Rafiee</teacher>\n"));
> >>
> >> File.WriteString(_T(" </teachers>\n"));
> >>
> >> File.WriteString(_T(" <class>My Class</class>\n"));
> >>
> >> File.WriteString(_T(" <activityInfo>\n"));
> >>
> >> File.WriteString(_T(" <grades>\n"));
> >>
> >> File.WriteString(_T(" <grade>3</grade>\n"));
> >>
> >> File.WriteString(_T(" </grades>\n"));
> >>
> >> File.WriteString(_T(" <subjects>\n"));
> >>
> >> File.WriteString(_T(" <subject>Mathematics</subject>\n"));
> >>
> >> File.WriteString(_T(" </subjects>\n"));
> >>
> >> File.WriteString(_T(" <beginningDate>05/01/2006</beginningDate>\n"));
> >>
> >> File.WriteString(_T(" <endingDate>05/01/2006</endingDate>\n"));
> >>
> >> File.WriteString(_T(" <reportDate>05/01/2006</reportDate>\n"));
> >>
> >> File.WriteString(_T(" </activityInfo>\n"));
> >>
> >> File.WriteString(_T(" </header>\n"));
> >>
> >> File.WriteString(_T(" <body>\n"));
> >>
> >> File.WriteString(_T(" <statementTables>\n"));
> >>
> >> File.WriteString(_T(" <statementTable>\n"));
> >>
> >> File.WriteString(_T(" <standard code=\"111.15.3.6.(C)\"
> > recordID=\"272887\"
> >> parentID=\"272884\" percentAnswered=\"null\"
> > percentAboveUserValue=\"null\"
> >> questionCount=\"0\" description=\"identify patterns in related
> >> multiplication and division sentences (fact families) such as 2 x 3 = 6
3
> > x
> >> 2 = 6 6 � 2 = 3 6 � 3 = 2.\"/>\n"));
> >>
> >> File.WriteString(_T(" </statementTable>\n"));
> >>
> >> File.WriteString(_T(" </statementTables>\n"));
> >>
> >> File.WriteString(_T(" </body>\n"));
> >>
> >> File.WriteString(_T(" </AYPClass>\n"));
> >>
> >> File.WriteString(_T("</standardReport>\n"));
> >>
> >> File.Close();
> >>
> >>
> >> AliR.
> >> P.S. One thing that is bugging me is that just now I removed all the
> >> lines
> >> in this method execpt for the line that outputs the 0xF7 chars, without
> > all
> >> the other lines it shows up fine in the file.
> >>
> >> "Tom Serface" <tserface@msn.com> wrote in message
> >> news:eL50czfbGHA.1856@TK2MSFTNGP03.phx.gbl...
> >> > OK, I don't know which parser you are using, but with Xerces I had a
> >> problem
> >> > with high-bits being set unless I either compiled in Unicode or set
the
> >> > "embedding=" string to something that was 16 bit like ISO8859-1.
Could
> > be
> >> > the parser is replacing the character that it doesn't recognize with
a
> >> > default character.
> >> >
> >> > Tom
> >> >
> >> > "AliR" <AliR@online.nospam> wrote in message
> >> > news:445777e3$0$14891$a8266bb1@reader.corenews.com...
> >> > > Hi Tom,
> >> > >
> >> > > I misrepresented the problem a little.  I am writing this out to an
> > XML
> >> > > file.  The XML parser complains that the character (� 0xF7) is
> > invalid.
> >> > >
> >> > > When I open the file in a text editor like notepad or VS IDE, the
> >> > > text
> >> > > doesn't look like it should, but if I open in a hex editor, I can
see
> >> that
> >> > > the chars are both 0xF7.
> >> > >
> >> > > If I open the file in a text editor again, and copy/paste the
> > character
> >> > > out
> >> > > of Character Map program into the text file and save it. Then
> > everything
> >> > > works fine with the XML parser, and when I open it in the Hex
editor
> > the
> >> > > value of the chars are 0xC3B7.
> >> > >
> >> > > What I can't understand is what is the difference between what I am
> >> > > writing
> >> > > to the file, and what get's pasted when I paste the char from
> > character
> >> > > map
> >> > > program.
> >> > >
> >> > > AliR.
> >> >
> >> >
> >>
> >>
> >
> >
>
>


0
AliR3470 (3235)
5/2/2006 7:46:07 PM
I figured this out because I had the same problem as you a couple of years 
ago.  Most of the parsers assume that the text is 8 bit unless the encoding 
is set.  I could not figure out a way with Xerces to set the encoding so I 
just forced it into the string using a known 16 bit type and that made it 
work.

If you compile your application as Unicode then WriteString from CStdioFile 
should also write unicode strings out so I don't know what's up with that. 
Could be that the XML parser is still looking at the encoding setting 
regardless of the character type???  I haven't used MSXML much so I don't 
know that much about it.

My experience with Xerces was that if the string I was sending to the parser 
was Unicode it recognized that somehow even though it didn't have a BOM.  We 
also ended up compiling a wide char version of Xerces using the w_char as 
type thing since that's what VS 2005 seems to put in the project by default 
so I don't know if that did something either.

You're right... this stuff is mysterious.

Tom


"AliR" <AliR@online.nospam> wrote in message 
news:4457b72b$0$14871$a8266bb1@reader.corenews.com...
> Tom,
>
> I have a question.  I searched around and saw that the reason I have to
> specify ISO8859-1 is because XML by default assumes that the text is
> Unicode.
>
> Unicode is a gray area for me.  While I was doing the test app (the code I
> posted earlier), I specified that the project is unicode.  And I thought
> that File.WriteString(_T("Some Text")); would output unicode!
>
> What am I missing here?
>
> AliR.


0
tserface (3860)
5/2/2006 10:19:05 PM
Yes, but "most fonts" is not "all fonts".  It isn't really ASCII (that's only codes 00-7F)
but it is a character in most ISO-Latin fonts, the ones most commonly found in Windows
(those conforming to ISO-8859-x).  But some of the Microsoft fonts are notably deficient,
e.g., MS Sans Serif has quite a few holes.
					joe

On Tue, 2 May 2006 13:59:11 -0500, "AliR" <AliR@online.nospam> wrote:

>� is an asci character that is the same in most character fonts (0xF7).
>
>AliR.
>
>"Joseph M. Newcomer" <newcomer@flounder.com> wrote in message
>news:po5f52hl5vtemqnk6adjfpd0rrvtarqpma@4ax.com...
>> When you write � it really has no meaning.  No more than "A" has meaning.
>The only reason
>> code 0x41 displays as "A" is that all fonts that support the Latin
>alphabet have the glyph
>> of two diagonal lines with a vertex at the top of the character cell and a
>horizontal bar
>> about halfway down that connects the two lines.  So the question really
>can't be answered
>> unless the font being used is known, and you haven't specified that.  In
>addition, you
>> have shown the string as _T("") which suggests the possibility that you
>have a Unicode
>> app.  You have not said how you read it back, or how you are displaying
>it.  You will need
>> to supply all this information before we can really give an answer.
>> joe
>>
>> On Mon, 1 May 2006 16:40:13 -0500, "AliR" <AliR@online.nospam> wrote:
>>
>> >Hi Everyone,
>> >
>> >Here is another thing that I can't figure out.
>> >
>> >I am writing a text to a file
>> >File.WriteString(_T("2 x 3 = 6    3 x 2 = 6    6 � 2 = 3     6 � 3 =
>> >2.\n"));
>> >
>> >But when I read it back I get
>> >
>> >2 x 3 = 6    3 x 2 = 6    6 2 = 3     6? 3 = 2
>> >
>> >I am not sure why the � (character 0xF7) is not showing up correctly?
>> >
>> >The funny thing is that the first one doesn't even show up, and the
>second
>> >one shows up as a block.
>> >
>> >Any solution to this?
>> >
>> >Ali
>> >
>> >
>> >
>> Joseph M. Newcomer [MVP]
>> email: newcomer@flounder.com
>> Web: http://www.flounder.com
>> MVP Tips: http://www.flounder.com/mvp_tips.htm
>> -- 
>> NewsGuy.Com 30Gb $9.95 Carry Forward and On Demand Bandwidth
>
Joseph M. Newcomer [MVP]
email: newcomer@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
-- 
NewsGuy.Com 30Gb $9.95 Carry Forward and On Demand Bandwidth
0
newcomer (15972)
5/3/2006 2:15:16 AM
Hi Joe,

I don't think the "font" is his problem.

Tom

"Joseph M. Newcomer" <newcomer@flounder.com> wrote in message 
news:ve4g5254htsqn0q03il5r1jj2cpbbp9gel@4ax.com...
> Yes, but "most fonts" is not "all fonts".  It isn't really ASCII (that's 
> only codes 00-7F)
> but it is a character in most ISO-Latin fonts, the ones most commonly 
> found in Windows
> (those conforming to ISO-8859-x).  But some of the Microsoft fonts are 
> notably deficient,
> e.g., MS Sans Serif has quite a few holes.
> joe


0
tserface (3860)
5/3/2006 8:45:48 PM
That's why I was asking for all the other information.  There are so many things that can
go wrong, it is hard to guess, given the limited information presented, what might have
been the case.  But I've seen a lot of problems with even the "standard" Microsoft fonts
being misused and abused, and the inherent deficiencies in many of the older MS fonts,
that it is one of the first questions I tend to ask.

But the question was almost impossible to answer given how little information was
presented (example: the standard console font has some problems, and without knowing how
many transformations of the data occurred, the simple word "display" [which is what I
think he used] is completely meaningless as a description of the problem.
					joe

On Wed, 3 May 2006 13:45:48 -0700, "Tom Serface" <tserface@msn.com> wrote:

>Hi Joe,
>
>I don't think the "font" is his problem.
>
>Tom
>
>"Joseph M. Newcomer" <newcomer@flounder.com> wrote in message 
>news:ve4g5254htsqn0q03il5r1jj2cpbbp9gel@4ax.com...
>> Yes, but "most fonts" is not "all fonts".  It isn't really ASCII (that's 
>> only codes 00-7F)
>> but it is a character in most ISO-Latin fonts, the ones most commonly 
>> found in Windows
>> (those conforming to ISO-8859-x).  But some of the Microsoft fonts are 
>> notably deficient,
>> e.g., MS Sans Serif has quite a few holes.
>> joe
>
Joseph M. Newcomer [MVP]
email: newcomer@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
-- 
NewsGuy.Com 30Gb $9.95 Carry Forward and On Demand Bandwidth
0
newcomer (15972)
5/4/2006 1:37:59 AM
Reply:

Similar Artilces:

Rename User Problem
We have a user that has gotten divorced. I have renamed her account and everything else yet she still shows up with her old name in one place. Example: Old name: Missy Oldname = moldname as her username. She used to show up like Missy Oldname <moldname> in the address list dropdown. Renamed everything to: New name: Missy Newname = mnewname as her username. She still shows up in the address list as Missy Newname <moldname> in the address drop down list. The strange thing is you can search for her name by typing mo and it brings up her email name in the to: field. You type mn...

Problem updating references on a chart
Hello, I have a spreadsheet with 50 tabs. Each tab has a 6 month audit score that looks like this: MAR APR MAY JUN JUL AUG 100% 100% 100% 100% 100% 100% There is a bar graph linked to these cells on each tab. What I am trying to do is group the tabs together, then delete the MAR score, shift all cells to the left, then add a SEP score. The problem is... when I try to do that, the graph changes to only show APR MAY JUN JUL & AUG. I can't get it to automatically add SEP. I could do it individually but that would be very time consuming to do it for 50 ...

Security Classification problems
Whenever I try to forward or reply to e-mails, I am prompted to include a "security classification". The "Security Classification" feature, however, is not accessable; it is accessable only when I create a new e- mail. How can I forward or reply to e-mails with this security dilemma? How do I disengage this feature? Has anyone else had this problem? Nope - never heard of it. Do you have any third party programs installed to provide extra security to Outlook? --� Milly Staples [MVP - Outlook] Post all replies to the group to keep the discussion intact. Due to the...

CListBox::create problem
Hello, My application crashes when calling this method in OnInitDialog() . Could you tell me what is the problem? Here what i do: BOOL CPCM_ViewDlg::OnInitDialog() { [generated code...] // TODO: Add extra initialization here m_DeviceList.Create ( WS_VISIBLE | LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_HSCROLL | WS_TABSTOP, CRect(7,10,241,168), this, IDC_LIST1 ); } m_DeviceList is a member of CPCM_ViewDlg. Thanking you in advance Are you calling it after the call to base class CDialog::OnInitDialog(); ? It should be something like BOOL YourDi...

extracting sheets on the basis of Row character
Hi, I have the below data...i have only shown the st column but i have the data in 15 coulmns. Like this i have 20 sheets... and i need a separate sheets for the name that are contained in column A ie separate sheet for "Mark" where it will extract the data from 20 sheets where there is row with name mark... Name Mark Steve Mark Gary Mark Gary Steve Regards, radha If desired, send your file to my address below. I will only look if: 1. You send a copy of this message on an inserted sheet 2. You give me the newsgroup and the subject line ...

sumif not equal problem
Simple question. I'm trying to sum up sum data not equal to a certai criteria. Below is the formula I'm using but it is not working. An help would be appreciated. =SUM(IF(Sheet2!A:A,"<>A9:A14",Sheet2!B:B)*(1-$B$5)) Thanks in advance B -- Message posted from http://www.ExcelForum.com Hi one way =SUMRODUCT(--(Sheet2!A1:A1000<>A9),--(Sheet2!A1:A1000<>A10),--(Sheet2!A 1:A1000<>A11),--(Sheet2!A1:A1000<>A12),--(Sheet2!A1:A1000<>A13),--(Shee t2!A1:A1000<>A14),Sheet2!B1:B1000)*(1-$B$5) -- Regards Frank Kabel Frankfurt, Germany "br...

problem with mail database
Hi, I have the pub.edb and priv.edb files from a 5.5 installation. The PDC has been re-created and all users added again. I have tried to copy the .edb's back and run isinteg -patch, but exchange will not start with these old .edbs There is loads of vital information in the data, so I really need to recover this. I have built a test server and tried to open the data on this as well, but still no avail. Any help wi REALLY appreciated. thanks, NEIL What happens when you try and start the Exchange server with the edb files in place ? Are any events logged in the application event ...

November 10, 2009 Security Update macro problems
After the Security Update for Excel 2003 and 2007 from November 10, 2009, macros became much slower and a refresh problem started happening. What happens is that when, through VBA, I place a value on a cell on an inactive sheet, the cell where the value has been placed is seen in the active sheet. This is causing some unusual behavior, as i place a lot of values in sheets that are not active. Does anyone have a problem like this? http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public.officeupdate&tid=c67c9a0d-4c83-41ec-b4c6-778974190066&cat=&a...

#### being printed instead of characters
I have a text cell that when it prints the cell prints out as all ######. I have tried to expand to cell but still get only the characters #. Is there a limit on the number of characters that will fit into a cell? --- Message posted from http://www.ExcelForum.com/ From the XL2000 Help file, "Worksheet and workbook specifications": Length of cell contents (text) - 32,767 characters. Only 1,024 display in a cell; all 32,767 display in the formula bar. HTH Ed "mconville" <mconville.yhu4b@excelforum-nospam.com> wrote in message news:mconville.yhu4b@excelforum-...

problems with pdf attachments
For the last couple of weeks when I receive mail with attached pdf files, if I try to move or delete the mail Windows Mail hangs. Sometime it recovers but otherwise I need to kill it. I can open the attachment by clicking on the paper clip etc and everything seems fine so I don't think it's a security thing. Try clearing your Temporary Internet Files in IE and see if that makes = any difference. You can also compact and repair the WinMail database = (www.oehelp.com/WMUtil/) and see if that has any affect. steve "Duane Hebert" <spoo@flarn.com> wrote ...

Synchronization problem with Outlook Web Access
A few weeks ago we had some problem with our servers, and we reinstalled everything, but we restored the exchange database. Now I have a problem with some old calendar items. They generating reminders in Outlook Web Access, and they are visible there, however I cannot delete them. Using Office Outlook these items are not visible, as if they are non-existing. How can I solve this issue? ...

Performance Problem
Hi all, Still with a driver that is opening a COM port. The driver is issuing a read request to the COM port. On completion the driver is saving the buffer and queuing a DPC which will issue the next read to the COM port. This way the driver is reading as fast as it can. Or at least this is what I thought. It looks like reads are completed with 0 timer ticks (100ns) repeatedly when there is more to read. If there is nothing to read then the next read will be in average of the real data sent but in multiples of 15 milliseconds exactly. For example if 10 bytes are sent every ...

Printing problems with Notebook. It is printing meaningless symbo.
Word 2003 won't print my envelopes. Troubleshooting suggested I print something from Notebook. It came out looking like meaningless symbols. What is wrong?? The first thing that could be wrong is that you posted a question about Word in a newsgroup for Publisher. May I suggest posting your question in microsoft.public.word? -- JoAnn Paules MVP Microsoft [Publisher] "Neeters" <Neeters@discussions.microsoft.com> wrote in message news:18379B24-04EC-4124-922D-F7F8B498ADC8@microsoft.com... > Word 2003 won't print my envelopes. Troubleshooting suggested I print...

delete all characters after an character
Hi I have a spread sheet where I have a colum with pack size ex: 10/20'. I would like to remove all character after the slash (/). I cannot use any of amount of character beacause it's not always the same format but the slash is always there. Remember I have over 10000 lines. Thank any help will be appreciated. try this. Also removes the / Sub findslash() For Each c In Selection x = InStr(c, "/") - 1 MsgBox Left(c, x) Next End Sub -- Don Guillett SalesAid Software donaldb@281.com "Jean-Francois Boucher" <Jean-Francois Boucher@discussions.microsoft.com&g...

Strange Character
I'm trying to write some code to delete a character in a text file. The character appears as a square "O", and when it is copied to MS Word, it turns out to be "^m" for a manual page break that I can find, edit and replace. So the question is, what is that character in Excel, and how can I do and find and replace on it? If you need more information, please let me know. Thanks, Bernie Chip Pearson has a very nice addin that can help identify those funny characters. http://www.cpearson.com/excel/CellView.htm If you have to do this lots of times, I'd recor...

Public Folder problems
Situation is as follows: Server1 in parent domain has a single SMTP Connector for internet bound email and incoming email. Server1 is member of RoutingGroup1 Server2 in the child domain is member of RoutingGroup2. Both Routing Groups are connected by a Routing Group connector. Mail between all users mailboxes flows without a problem We have the following issues: Issue 1: Public Folder replication only works one-way: from Server1 to Server2 Issue 2: Users canot send emails to mail-enabled public folders in the other routing group. If they try this, the emails get stuck in the Local Delivery...

picture problem
greetings! i'm making a business-card sized document, with a small series of pictures. the pictures look great on the document, even when i zoom in to 400%. but when i print them, they are awful!! i originally just put the pictures in the document straight from the digital camera memory card and cropped them in publisher, but after the printing, i opened them in photoshop elements, cropped them, and saved them as a new file, in maximum quality file size. they are still blurry. i tried pdf'ing them, and that helps a little, but not much. what's causing this problem and ho...

Frx 6.7 problem
Coming up with an error The GL Index is locked by user since 12:00 AM This on FRX 6.7 with Great Plains 8 Also is there a generic password that we can use if the administrator password is unknown. Thanks Kill the gl index file (.g32 file) in the sysdata folder, and relogon to FRx. If this does not work, look for a .ldb (access lock file) in the sysdata folder. Make sure no one else is in FRx and delete the lock file, then delete the .g32 file and log back onto FRx. "Jess M." wrote: > Coming up with an error > > The GL Index is locked by user since 12:00 AM >...

Odd Characters showing up in e-mails sent to contacts
When we send out e-mail from CRM sometimes our customers complain that odd characters show up in the e-mails. The characters usually look like this “, this ” or this †Any ideas on how to prevent this? Sometimes this occurs if you compose the email in another application and paste it into a CRM email template or email form. Try re-typing the email directly in the CRM template or form. -- Matt Wittemann, CRM MVP http://icu-mscrm.blogspot.com "Steve Bambauer" wrote: > When we send out e-mail from CRM sometimes our customers complain that odd > ch...

Re: MS Outlook XP (2002) Message Rules Problem(s)
frustrating problem. been tackling it for days. problem: when i create a rule, or more than one, to autorespond with a specifi template (regardless of whether the rules does other things or not, i it contains an autoresponse, this problem occurs) the FIRST incomin email that matches the criteria gets a response and NO others. why this is a problem: IF, for example, i had a autoR setup to send a pic of my God daughte to everyone that messages with the subject line: send me a pic of her ONLY the first person to send an email will get their email. also, IF i had another one setup w/ the cri...

Smartlist builder calculated field problem
I am trying to build a smartlist with a calculated field that contains the number of hours and minutes until a service call expires. The user defined 1 field is the date and time in smalldate format that shows when the call expires. I need to have it so that the field displays the hours / minutes until this time is reached. I currently have the following in the : DATEDIFF ( hh , GETDATE() , {Service Call Master:User Defined 1} ) this returns absolutly nothing when I add the columns to the smart list. The field description in great plains tells me that the user defined field is a stri...

Issue skiping characters by Regular Expressions searching Word
When using Regular Expression search using VBA script in Excel to search Word document, "-" character in the word document gets skiped (substituted with "" empty character). Here is the string in Word: <DE4.0><SWR4.4.l‑CE6:A> Here is the snipet of VBA code used: With Selector.Find .text = "\<DE?*^13" .Replacement.text = "" .Forward = True .Wrap = wdFindzz .Format = True .MatchCase = False .MatchWholeWord = False .MatchAllWordForms = False .MatchSoundsLike = False .MatchWild...

web browser problem
Attempting to access a web site that is active. I'm able to see it on other computers and friends are also able to access the site. I last accessed it 6 months ago; now I recieve an unable to connect to internet message. My connection wizard confirms I have service & I can access any other web site on my browser; not this web site. I added it to my trusted web site list, which only has two; to no avail. Can anyone help resolve this problem? -- Marc Marc This is not an Office issue. Try and post this to the proper IE newsgroup that corresponds with your IE Browser...

Outlook Toolbar Problems
I've been having problems with disappearing Outlook toolbars such as the Norton Anti-Virus and Google Outlook Search. I renamed the outcmd.dat file and that fixed everything, but the next time I started Outlook, the toolbars disappeared again. I renamed outcmd.dat again, fixed it, but the problem came up again when Outlook was next opened. I am running Business Contact Mgr and Outlook Backups. Could these be the source of the problem? Any suggested fixes? Thanks, Hayden Shumsky www.haydencoach.com Path To Purpose Program 'Clarity and Results for Young Adults' ...

Randomize character positions in string
Dear all, I want to randomize character positions in string. Example : jhonny --> onyhjn freddy --> dfyerd Please help. Thanks. Chlaris On Fri, 25 Jan 2008 09:51:27 +0700, "Chlaris" <chlarrissa_nospam@yahoo.com> wrote: What are you REALLY trying to accomplish? -Tom. >Dear all, > >I want to randomize character positions in string. > >Example : > >jhonny --> onyhjn >freddy --> dfyerd > >Please help. Thanks. > >Chlaris > I have employee name field. I want create a module to change the character position in employee n...