+devbrain Posted September 9, 2003 Share Posted September 9, 2003 At the moment, if I go to the http://www.geocaching.com/track/ page there is incorrect truncation on a number of the "top 10 bugs" list. The HTML string is truncated to a fixed value, and then has "..." appended if need be. What's happening is extended characters like "e (I hope that came out right) are being truncated mid-way. The end result is something like: "Wyle C&qu... instead of "Wyle C" which would actually fit within the space allocated. Suggested solution ... convert the encoded string (quotes into "e; for example) into text, then truncate if needed and reconvert the special characters back to their escaped variations. Sorry if this is a duplicate post. I had a quick search through the forum before posting, but didn't really want to spend all day at it. Link to comment
Recommended Posts