Strange Characters...
Richmond
richmondmathewson at gmail.com
Thu May 7 14:19:58 EDT 2015
On 07/05/15 16:47, John Dixon wrote:
> Now that we have unicode that 'just works' ?!
Every time I come across anything that claims it 'just works' I laugh
my socks off.
>
> CAn someone tell me what I am doing wrong, or even better what to do now as what used to work for me doesn't anymore...:-( Using the lines below, I make a request to a datbase through an .lc script...The result is returned to temp..
>
> put "http://www.xxxxxxxx.com/spencerdata/index.lc?A=index&thetongue=" & thelanguage into tURL
> put URL tURL into temp
What has that to do with Unicode?
>
> If there are any accents and other strange characters then garbage is returned.... Can someone tell me what to do ?
>
>
> _______________________________________________
>
------------------ Alcoholic instruction follows
--------------------------------------------------------------------------------------------
About half a litre of red wine from the Перущица vineyard of the father
of two kids I teach, whose
main job is as a garage mechanic! Why the flying "fudge" the man cannot
make a living from such wine, instead of
getting oily, I just don't know: autres moeurs, autres coeurs, je pense.
Let's see how the Use-List deals with Перущица, let alone LiveCode.
Enter the town's name in Google Maps to see where you have to go for
LiveCode realisations on the next level.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
Frankly, "put URL tURL into temp" gives me the willies, so I'm going to
PUT the thing into a field:
on mouseUp
put
"http://www.xxxxxxxx.com/spencerdata/index.lc?A=index&thetongue=" &
thelanguage into tURL
put URL tURL into fld "downbye"
end mouseUp
and I got NO "garbage" at all, but the proper HTML stuff:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
data-adblockkey="MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBALquDFETXRn0Hr05fUP7EJT77xYnPmRbpMy4vk8KYiHnkNpednjOANJcaXDXcKQJN0nXKZJL7TciJD8AoHXK158CAwEAAQ==_HteTXLCKsJbH0DoznOhlDRG7CB8maLoNW3CKS13jsEHZpbdkFjtduJOlf9suqWOJL+hcb8bHSk3HBSvQXlALEg=="
xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>xxxxxxxx.com</title>
<script src="http://www.google.com/adsense/domains/caf.js"
type="text/javascript" ></script>
<link
href="http://d32ffatx74qnju.cloudfront.net/themes/assets/style.css"
rel="stylesheet" type="text/css" media="screen" />
<link
href="http://d32ffatx74qnju.cloudfront.net/themes/cleanPeppermintBlack_f448447f/style.css"
rel="stylesheet" type="text/css" media="screen" />
<link href='//fonts.googleapis.com/css?family=Libre+Baskerville:400,700'
rel='stylesheet' type='text/css'>
</head>
<body id="afs" style="visibility:hidden;">
<div id="holder" class="secondPage">
<div id="header">
<div id="domainname">xxxxxxxx.com</div>
<div id="searchHolder">
<div id="searchbox"></div>
</div>
</div><!--header-->
<div id="content">
<div id="rsHolder">
<div id="rs"></div>
</div>
<div id="adsHolder" class="adsHolder">
<div id="ads"></div>
</div>
<div class="clear"></div>
</div>
</div>
<div id="copyright">
<script type="text/javascript">function showImprint(){var imprintwnd =
window.open('','pcrew_imprint','width=640,height=480,left=200,top=200,menubar=no,status=yes,toolbar=no');imprintwnd.document.writeln("");imprintwnd.document.close();}function
showPolicy(){policywnd =
window.open('http://www.parkingcrew.net/privacy.html','pcrew_policy','width=890,height=330,left=200,top=200,menubar=no,status=yes,toolbar=no');policywnd.focus();}</script>
2015 Copyright. All Rights Reserved. <br/><br/>
The Sponsored Listings displayed above are served automatically by a
third party. Neither the service provider nor the domain owner maintain
any relationship with the advertisers. In case of trademark issues
please contact the domain owner directly (contact information can be
found in whois).
<br/><br/>
<a href="javascript:void(0);" onClick="showPolicy();">Privacy Policy</a>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-48689684-1']);
_gaq.push(['_setDomainName', 'auto']);
_gaq.push(['_setAllowLinker', false]);
_gaq.push(['_setCustomVar', 1, 'Theme', 'CleanPeppermintBlack', 1]);
_gaq.push(['_setCustomVar', 2, 'Theme Type', 'one', 3]);
_gaq.push(['_setCustomVar', 3, 'Category ID', '0', 3]);
_gaq.push(['_setCustomVar', 4, 'Colorscheme', '', 3]);
_gaq.push(['_setCustomVar', 5, 'domty', 'ascii', 3]);
_gaq.push(['_gat._anonymizeIp']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type =
'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' :
'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
})();
</script>
<!-- --></div>
<script type="text/javascript" language="JavaScript">
var adblock1 = {
// Required and steady
'container' : 'ads',
'type' : 'textads',
'adLoadedCallback' : function(shown, param2) {},
'colorBackground' : 'transparent',
'linkTarget' : '_blank',
'lines' : 3,
'number' : 5,
// Ad Icon
'adIconUrl' :
'http://afs.googleusercontent.com/dp-teaminternet/arr_3faad3.png',
'adIconWidth' : 17,
'adIconHeight' : 12,
'adIconSpacingAbove' : 11,
'adIconSpacingAfter' : 12,
// Colors
'colorTitleLink' : '#3faad3',
'colorText' : '#797979',
'colorDomainLink' : '#aac0d0',
'colorAttribution' : '#797979',
// Font-Sizes and Line-Heights
'fontFamily' : 'Arial',
'fontSizeTitle' : 22,
'fontSizeDescription' : 16,
'fontSizeDomainLink' : 16,
'lineHeightTitle' : 45,
'lineHeightDescription' : 30,
'lineHeightDomainLink' : 30,
// Alphabetically
'adjustableLineHeight' : 14,
'rolloverLinkColor' : '#00c800',
'titleBold': true,
'titleUppercase': true,
'verticalSpacing' : 24,
'width' : '640px',
'webFontFamily' : 'Libre Baskerville'
};
var searchboxBlock = {
// Required and steady
'container' : 'searchbox',
'type' : 'searchbox',
// Colors
'colorSearchButton' : '#3faad3',
'colorSearchButtonText' : '#222',
'colorSearchButtonBorder' : 'transparent',
// Font-Sizes
'fontSizeSearchInput' : 12,
'fontSizeSearchButton' : 13,
// Alphabetically
'heightSearchInput' : 22,
'radiusSearchInputBorder' : 5,
'hideSearchInputBorder' : true
};
var rsblock = {
// Required and steady
'container' : 'rs',
'type' : 'relatedsearch',
'colorBackground' : 'transparent',
'number' : 10,
// Font-Sizes and Line-Heights
'fontSizeAttribution' : 11,
'fontSizeTitle' : 17,
'lineHeightTitle' : 20,
'lineHeightDescription' : 16,
'lineHeightDomainLink' : 16,
// Colors
'colorAttribution' : '#797979',
'colorTitleLink' : '#3faad3',
// Alphabetically
'noTitleUnderline': true,
'rolloverLinkColor' : '#fff',
'verticalSpacing' : 2,
'webFontFamily' : 'Libre Baskerville'
};
</script>
<script type="text/javascript" language="JavaScript">if
(top.location!=location){top.location.href=document.location.href;}</script><script
type='text/javascript' language='JavaScript'>var isAdult=true;var
xbase='554bab84e7c624063a8b499c';var sbtext='Search';var
xt_auto_load=0;var ads='',pop_cats='';var rxid='0';var
uniqueTrackingID='MTQzMTAyMjQ2OC4zMDg5OmMyYjM0M2Y4MzkxMDk1NDM1YjVlYTRiOWQ1NmQwMzEwZmVjZDc5ODNmMTVhM2VhMDZkN2RmNGYyYTQ4M2JkNDU6NTU0YmFiODQ0YjZkYg==';var
search='';var is_afs=false;var country='bg';var
themedata='fENsZWFuUGVwcGVybWludEJsYWNrfHw1Y2U4NHx8YnVja2V0MDk4fHx8MHx8NTU0YmFiODQ0NDMwY3x8fDE0MzEwMjI0NjguMzExMnxhYzhlNWFkOTA5MmYxMTdkMDZlNGE2YzI4ZWRjYmRmZjE3YjQ1ZTExfHx8fHwxfHx8MHx8fHwwfHx8fHx8MHx8fHx8fA==';var
domain='xxxxxxxx.com';var scriptPath='';var adtest='off';var
useFallbackTerms=false;</script><script>if (!window.JSON) {
document.write("<script
src='http://d32ffatx74qnju.cloudfront.net/scripts/json3.min.js'
type='text/javascript' language='JavaScript'><\/scr"+"ipt>"); }</script>
<script src='http://d32ffatx74qnju.cloudfront.net/scripts/js3caf.js'
type='text/javascript' language='JavaScript'></script>
<script type='text/javascript'
language='JavaScript'>x(pageOptions,{resultsPageBaseUrl:
'http://ww3.xxxxxxxx.com/?ts=fENsZWFuUGVwcGVybWludEJsYWNrfHw1Y2U4NHx8YnVja2V0MDk4fHx8MHx8NTU0YmFiODQ0NDMwY3x8fDE0MzEwMjI0NjguMzEzNXw0NDgzNGEwZmM1YWFkNjY4MjA1ZjRlNmIwZWUzNGE4NmFiNjJkZmJkfHx8fHwxfHx8MHw1NTRiYWI4NGU3YzYyNDA2M2E4YjQ5OWN8fHwwfHx8fHx8MHx8fHx8fA%3D%3D',
hl: 'bg', kw: '', terms: [].join(','), uiOptimize: false, channel:
'bucket098', pubId: 'dp-teaminternet01_adult_3ph', adtest: 'off',
clicktrackUrl:
'http://parkingcrew.net/track.php?click=caf&domain=xxxxxxxx.com&rxid=0&uid=MTQzMTAyMjQ2OC4zMDg5OmMyYjM0M2Y4MzkxMDk1NDM1YjVlYTRiOWQ1NmQwMzEwZmVjZDc5ODNmMTVhM2VhMDZkN2RmNGYyYTQ4M2JkNDU6NTU0YmFiODQ0YjZkYg%3D%3D&ts=fENsZWFuUGVwcGVybWludEJsYWNrfHw1Y2U4NHx8YnVja2V0MDk4fHx8MHx8NTU0YmFiODQ0NDMwY3x8fDE0MzEwMjI0NjguMzEzNHw4N2I0Y2MwZDhhNTM4YmRlZjNlYzE4N2MwN2Y0NDBmYTljYjFiZmM5fHx8fHwxfHx8MHw1NTRiYWI4NGU3YzYyNDA2M2E4YjQ5OWN8fHwwfHx8fHx8MHx8fHx8fA%3D%3D&adtest=off'});</script><script
type='text/javascript'
language='JavaScript'>x(pageOptions,{domainRegistrant:'as-drid-2647210411801048'});</script><script
type='text/javascript'>function loadFeed(){return
google.ads.domains.Caf.apply(this, arguments);};</script>
<script type="text/javascript" language="JavaScript">function
relatedCallback(options){return false;} function
relatedFallback(callback){return callback();}</script><script
type='text/javascript' language='JavaScript'>if(typeof x == 'undefined'
|| typeof pageOptions == 'undefined') { var links =
document.head.getElementsByTagName('link'); for(var i = 0; i <
links.length; i++) { links[i].href =
links[i].href.replace('http://d32ffatx74qnju.cloudfront.net',
'http://parkingcrew.net/assets'); } document.body.style.visibility =
'visible'; document.getElementById('searchHolder').style.visibility =
'hidden'; }</script>
<script type="text/javascript" language="JavaScript">new
loadFeed(pageOptions, adblock1, searchboxBlock, rsblock);</script>
</body>
</html>
This is with LC 7.0.4 on Linux: so I don't really know what all the fuss
is about - perhaps it comes from using 'temp'.
Richmond.
More information about the use-livecode
mailing list