On the search page

Having difficulties? Ask here.
Forum rules
Do not to post anything abusive, obscene, vulgar, slanderous, hateful, threatening, or sexually-orientated.
Do not post anything negative about any player.
No advertising other games.
The management reserves the right to delete or lock threads and messages at any time.
Read the complete SIM rules and legal information.
Post Reply
User avatar
Nick Gilmore
Hall of Fame
Posts: 5369
Joined: 16 years ago

On the search page

Post by Nick Gilmore »

This had been covered before and I thought it was fixed, but I can’t do a search of Halley’s Comet yearlings. I know he has 21, but I’d like to view the breeders. Something about the apostrophe?
User avatar
Carole Hanson
Hall of Fame
Posts: 5825
Joined: 15 years ago

Re: On the search page

Post by Carole Hanson »

User avatar
Ronnie Dee
Hall of Fame
Posts: 3261
Joined: 17 years ago

Re: On the search page

Post by Ronnie Dee »

Because single quote marks are already being used as delimiters (in the GET sent to the server), you need to use an alternative for a single quote mark in a horse's name. In this case, %27 is used to encode (using UTF-8) the single quote mark.

Note: the space in the name can be encoded using either %20 or + (the plus sign -- which is what Carole's query used).
Great Stallions at Great Prices -- Stud Fee of only $12,500 each

Hero Morgan
5 furlong specialist extraordinaire!

Bennie and the Jets
SC AW Classic (twice) and Pegasus Winner

Mage
Versatile (AR/DR/TR and AM/DM/TM) RL stallion
User avatar
The Admin
Eclipse Champion
Posts: 1074
Joined: 18 years ago

Re: On the search page

Post by The Admin »

Nick Gilmore wrote: 6 years ago This had been covered before and I thought it was fixed, but I can’t do a search of Halley’s Comet yearlings. I know he has 21, but I’d like to view the breeders. Something about the apostrophe?
Short Answer: Try again now.

Long Answer: Did you type the name "Halley's Comet" into the box on the search page or copy and paste it from somewhere else? The search box doesn't have any problem with single-quotes (apostrophes), but what you had in your post was a "curly-quote" which is slightly different from a normal, straight quote. I'll try to show the difference.
straight quote: '
curly-quote: ’

The name of the horse has a straight quote, but you searched for a curly quote. It you type in to the field, I expect you'd have a straight quote and it would work. That is why I wonder if you copied it from somewhere else that put in the curly quote.

In any case, I put in a fix for the search page (only) that accepts both kinds of quotes.

You don't have to worry about about any quirks that web pages have with quotes - the programmer will worry about that for you.
User avatar
Nick Gilmore
Hall of Fame
Posts: 5369
Joined: 16 years ago

Re: On the search page

Post by Nick Gilmore »

I’m on an ipad and that’s what I get, lol. It looks good now. Thanks much!
User avatar
Nick Gilmore
Hall of Fame
Posts: 5369
Joined: 16 years ago

Re: On the search page

Post by Nick Gilmore »

I’m really sorry to bother, but I can see the difference and I’m still having this problem. I’m trying to name some yearlings and I’m getting rejected due to “illegal characters”. I’ve tried to see if I can change the print style on my tablet, but I don’t seem to have that option.
Things with apostrophes don’t always register. For instance I’m trying to name one Gracie’s Dragon and I get illegal characters. Or if I hypomate a mare with Halley’s Comet, the only way it recognizes his name is if I accept the prompt, not if I type it out completely myself. Then it comes up with the stallion part blank saying I need 2 live horses to make the cross.
I know this has been addressed before, but it’s still sticky. The hypos I can deal with, but I can’t find a way around the naming thing.
User avatar
The Admin
Eclipse Champion
Posts: 1074
Joined: 18 years ago

Re: On the search page

Post by The Admin »

Nick Gilmore wrote: 6 years ago I’m really sorry to bother, but I can see the difference and I’m still having this problem. I’m trying to name some yearlings and I’m getting rejected due to “illegal characters”. I’ve tried to see if I can change the print style on my tablet, but I don’t seem to have that option.
Things with apostrophes don’t always register. For instance I’m trying to name one Gracie’s Dragon and I get illegal characters. Or if I hypomate a mare with Halley’s Comet, the only way it recognizes his name is if I accept the prompt, not if I type it out completely myself. Then it comes up with the stallion part blank saying I need 2 live horses to make the cross.
I know this has been addressed before, but it’s still sticky. The hypos I can deal with, but I can’t find a way around the naming thing.
Nick,
You are using an iPad I believe. Apparently in iOS 11, Apple decided to default a "feature" that always uses curly quotes rather than straight ones. There is a way to turn it off, but instead, I added code that should help you out. Please try again. And, let me know if there are other places that curly apostrophes give you trouble on the iPad.
User avatar
Nick Gilmore
Hall of Fame
Posts: 5369
Joined: 16 years ago

Re: On the search page

Post by Nick Gilmore »

Thanks much...so far so good!
Post Reply