Encodings?

I downloaded and parsed a web page.
I discovered that one of the words has an apostrophe in it.
In debug mode, looking at the binary for the web page, I can see that
the apostrophe is Hex E28099.
When I go to a web UTF8 decoder page I found at

http://software.hixie.ch/utilities/cgi/unicode-decoder/utf8-decoder

and enter the Hex E28099, it says it is 2019 RIGHT SINGLE QUOTATION
MARK .

Later it says * this is the preferred character to use for apostrophe.
I can’t get RB to give me an apostrophe with that Hex.

When I do:
Dim s2 as string
s2 = Encodings.UTF8.Chr( 2019 )

I get a Hex of DFA3 in s2, which is not displayed as an apostrophe in
text mode.

I understand the concept of Encodings, but the use of Encodings in RB
seems confusing to me.

Anyway I have tried several things and I cannot get a string with
E28099 as the Hex for an apostrophe in RB.
Anyone know how to do this?

Thanks
LLE


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

What is RB?

Walter

On Jan 12, 2009, at 8:54 AM, LLE Freeway wrote:

I understand the concept of Encodings, but the use of Encodings in
RB seems confusing to me.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Sorry, My Bad, I sent this to the wrong list!!!
LLE

On Jan 12, 2009, at 9:57 AM, Walter Lee Davis wrote:

What is RB?

Walter

On Jan 12, 2009, at 8:54 AM, LLE Freeway wrote:

I understand the concept of Encodings, but the use of Encodings in
RB seems confusing to me.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Sometime around 12/1/09 (at 08:54 -0500) LLE Freeway said:

Anyway I have tried several things and I cannot get a string with
E28099 as the Hex for an apostrophe in RB.

Hi - are you talking about Freeway? It doesn’t really sound like it…

k


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

My guess would be REALbasic (Xojo: Cross-platform App Development Tool).
http://louslittle.com/MacSoft/macsoftware.html
Regards,
Tim.

On 12 Jan 2009, at 06:57, Walter Lee Davis wrote:

What is RB?

FreewayActions.com - Freeware and shareware actions for Freeway
Express & Pro.

Protect your mailto links from being harvested by spambots with Anti
Spam.
Only available at FreewayActions.com

http://www.freewayactions.com


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Tim,
You win the detective reward!!! What follows is way OT

I am working on a RB program that gets the data off of a web based
database at
http://tracker.ambrosia.net/redline_best.php
I have written this type of program for other web based database sites.
My program simulates the user making selections from the pull down
menus,
It gets the response page HTML, parses it to extract the table of
information, scans that data and stores off selected data in a local
database.
The problem is in the first menu the selection Brand’s Hatch. The
apostrophe is driving me nuts. In ASCII, it is simple, Hex 27.
However, in UTF8 encoding, a special apostrophe is at Hex index 2019,
which yields the Hex string of E28099. I can get either the ASCII or
UTF8 to be sent to the server from RB. The problem is that the server
apparently wants the data in macintosh/MacRoman encoding with a Hex of
D5 for the apostrophe. I am having trouble getting RB to send the D5
character. I just figured out that this was the actual problem late
last night, more work today.

Since I was working on a web page problem, I had a brain cramp and
accidently posted it to this Freeway list instead of my RB list.
Sorry

LLE

On Jan 13, 2009, at 1:50 AM, Tim Plumb wrote:

My guess would be REALbasic (Xojo: Cross-platform App Development Tool).
http://louslittle.com/MacSoft/macsoftware.html
Regards,
Tim.

On 12 Jan 2009, at 06:57, Walter Lee Davis wrote:

What is RB?

FreewayActions.com - Freeware and shareware actions for Freeway
Express & Pro.

Protect your mailto links from being harvested by spambots with Anti
Spam.
Only available at FreewayActions.com

http://www.freewayactions.com


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options