Extraneous Backslashes in Cat-eLog updates.
- MatsP
- Posts: 21038
- Joined: 06 Oct 2004, 13:58
- My articles: 4
- My images: 28
- My cats species list: 117 (i:33, k:0)
- My aquaria list: 12 (i:10)
- My BLogs: 4 (i:0, p:164)
- Spotted: 187
- Location 1: North of Cambridge
- Location 2: England.
Extraneous Backslashes in Cat-eLog updates.
Text with single-quotes(') get quoted with backslashes in the Cat-eLog datasheet - this messes up the datasheets text, but worse is the links to external web-sites get completely messed up, because the parser thinks it's a local site, making the link http://www.planetcatfish.com/\'http://w ... epage.html\', which (naturally) leads to a 404-page-not-found error.
I think this is added by your Cat-eLog update routine, as I just submitted a change that REMOVED those extra backslashes, and they appear again on this page:
- there are no extra backslashes in the info emailed to me.
--
Mats
I think this is added by your Cat-eLog update routine, as I just submitted a change that REMOVED those extra backslashes, and they appear again on this page:
- there are no extra backslashes in the info emailed to me.
--
Mats
- MatsP
- Posts: 21038
- Joined: 06 Oct 2004, 13:58
- My articles: 4
- My images: 28
- My cats species list: 117 (i:33, k:0)
- My aquaria list: 12 (i:10)
- My BLogs: 4 (i:0, p:164)
- Spotted: 187
- Location 1: North of Cambridge
- Location 2: England.
-
- Posts: 2198
- Joined: 31 Aug 2004, 16:01
- I've donated: $100.00!
- My articles: 6
- My images: 12
- My cats species list: 17 (i:0, k:0)
- My aquaria list: 7 (i:7)
- Spotted: 6
- Location 1: Sharon, Massachusetts, US
-
- Posts: 2198
- Joined: 31 Aug 2004, 16:01
- I've donated: $100.00!
- My articles: 6
- My images: 12
- My cats species list: 17 (i:0, k:0)
- My aquaria list: 7 (i:7)
- Spotted: 6
- Location 1: Sharon, Massachusetts, US
- MatsP
- Posts: 21038
- Joined: 06 Oct 2004, 13:58
- My articles: 4
- My images: 28
- My cats species list: 117 (i:33, k:0)
- My aquaria list: 12 (i:10)
- My BLogs: 4 (i:0, p:164)
- Spotted: 187
- Location 1: North of Cambridge
- Location 2: England.
Ah, I've seen that too. I beleive that is for two possible reasons (either and both can apply):
1. There are some clean-up functions in the submission, that cleans up stuff (such as extra empty lines). When a piece of un-updated text is cleaned up, the "detect what's changed" still shows it as changed.
2. The "detect what's changed" doesn't compare the same thing on both sides - some strings (appear to me) get quoted [1] on the one side but not the other (I complained about this to Jools before, but he didn't think it was a big deal).
[1] Quoting or "escaping" in this case means prefixing special character such as single-quotes with another special character to indicate that "this is indeed a
special character inside the string". The problem is the same as when you are quoting text with quotes in it in a document - it can get confusing to keep track of which quotes are what.
Something like this:
--
Mats
1. There are some clean-up functions in the submission, that cleans up stuff (such as extra empty lines). When a piece of un-updated text is cleaned up, the "detect what's changed" still shows it as changed.
2. The "detect what's changed" doesn't compare the same thing on both sides - some strings (appear to me) get quoted [1] on the one side but not the other (I complained about this to Jools before, but he didn't think it was a big deal).
[1] Quoting or "escaping" in this case means prefixing special character such as single-quotes with another special character to indicate that "this is indeed a
special character inside the string". The problem is the same as when you are quoting text with quotes in it in a document - it can get confusing to keep track of which quotes are what.
Something like this:
Humans can work around this (unless it's VERY complicated), but computers are VERY particular about what they accept and don't accept, so there are a number of "special" characters that need to be handled especially because otherwise the computer gets (possibly VERY) confused.The text in the book says "He said "I don't like chese." "
--
Mats
Last edited by MatsP on 06 Aug 2007, 16:36, edited 1 time in total.
-
- Posts: 2198
- Joined: 31 Aug 2004, 16:01
- I've donated: $100.00!
- My articles: 6
- My images: 12
- My cats species list: 17 (i:0, k:0)
- My aquaria list: 7 (i:7)
- Spotted: 6
- Location 1: Sharon, Massachusetts, US
- MatsP
- Posts: 21038
- Joined: 06 Oct 2004, 13:58
- My articles: 4
- My images: 28
- My cats species list: 117 (i:33, k:0)
- My aquaria list: 12 (i:10)
- My BLogs: 4 (i:0, p:164)
- Spotted: 187
- Location 1: North of Cambridge
- Location 2: England.
-
- Posts: 2198
- Joined: 31 Aug 2004, 16:01
- I've donated: $100.00!
- My articles: 6
- My images: 12
- My cats species list: 17 (i:0, k:0)
- My aquaria list: 7 (i:7)
- Spotted: 6
- Location 1: Sharon, Massachusetts, US
- Jools
- Expert
- Posts: 16274
- Joined: 30 Dec 2002, 15:25
- My articles: 198
- My images: 941
- My catfish: 237
- My cats species list: 87 (i:235, k:1)
- My aquaria list: 21 (i:13)
- My BLogs: 7 (i:10, p:167)
- My Wishlist: 23
- Spotted: 450
- Location 1: Middle Earth,
- Location 2: Scotland
- Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
- Contact:
I did some work on this at the weekend. I'm not saying it's fixed entirely, but it does appear to work better now according to some test data I put thought it.
Jools
Jools
Owner, AquaticRepublic.com, PlanetCatfish.com & ZebraPleco.com. Please consider donating towards this site's running costs.
- Jools
- Expert
- Posts: 16274
- Joined: 30 Dec 2002, 15:25
- My articles: 198
- My images: 941
- My catfish: 237
- My cats species list: 87 (i:235, k:1)
- My aquaria list: 21 (i:13)
- My BLogs: 7 (i:10, p:167)
- My Wishlist: 23
- Spotted: 450
- Location 1: Middle Earth,
- Location 2: Scotland
- Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
- Contact:
Re: Extraneous Backslashes in Cat-eLog updates.
I beleive I have got to the bottom of this now and quotes, special characters like degree symbols and so forth and slashes are now catered for. If you are editing a sheet with errors in it, please clean them up and they will be reflected in the submission once I have vetted it.
Jools
Jools
Owner, AquaticRepublic.com, PlanetCatfish.com & ZebraPleco.com. Please consider donating towards this site's running costs.