Hi Mark, hi Jed...hi anyone interested.
the charset issue is quite a drag, I was only able to solve it taking a
detour over a .php which does the work.
<?php
function breakkeeper($text) {
return strtr($text, array("\n" => " "));
}
$url = $_GET['url'];
$posturl = $_POST['url'];
if (!empty($posturl)) {
$url = $posturl ;
}
$text = file_get_contents($url);
$such_array = array ('ä', 'ö', 'ü', 'A', 'Ö', 'Ü', 'ß');
$ersetzen_array = array ('ä', 'ö', 'ü','Ä',
'Ö', 'Ü', 'ß');
$text = str_replace($such_array, $ersetzen_array, $text);
$text = breakkeeper($text)
?>
<?=$text?>
My Interaction mechanism is gaining shape. If you want to see the way to
post to the Wiki check out the posttester on szenio.de/test.
Tschö Jan
Am 18.07.2019 um 09:45 schrieb Jan:
Hi Mark,
of course I did. Jed's line of conde is still in the widget on
szen.io/test.
But I thing what is going wrong is happening before that step. At that
point the data already seems to be unreadable.
Tschö (another German word with rockdots to say 'see you') Jan
Am 18.07.2019 um 03:04 schrieb 'Mark S.' via TiddlyWiki:
But did you try Jed's suggestion:
|
varurltext =decodeURI(client.responseText);
|
?
On Wednesday, July 17, 2019 at 4:58:15 PM UTC-7, Jan wrote:
Hi Jed, Hi Mark,
thanks for your help, I tried some things before answering:
stackoverflow says this could help:
| exports.run = function(url) {
var client = new XMLHttpRequest();
client.open('GET', url, false);
client.setRequestHeader('Content-type',
'application/x-www-form-urlencoded; charset=ISO-8859-1');
https://stackoverflow.com/questions/11906904/how-to-force-xmlhttprequest-to-use-iso-8859-1-charset-only
<https://stackoverflow.com/questions/11906904/how-to-force-xmlhttprequest-to-use-iso-8859-1-charset-only>
alas as visible hereszenio.de/Test/ <http://szenio.de/Test/> , it does not
The server is a commercial provider.|||nginx -| I assume.
Jan
|
Am 17.07.2019 um 18:30 schrieb Jed Carty:
It may be at least partially a browser thing, safari doesn't
display the characters, Firefox does.
But if it isn't a server thing I am not sure what else to check.
--
You received this message because you are subscribed to the
Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from
it, send an email to [email protected] <javascript:>.
To post to this group, send email to [email protected]
<javascript:>.
Visit this group at https://groups.google.com/group/tiddlywiki
<https://groups.google.com/group/tiddlywiki>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/20de66bc-6129-495f-9fc4-d02a4f23e33d%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/20de66bc-6129-495f-9fc4-d02a4f23e33d%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.
--
You received this message because you are subscribed to the Google
Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to [email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/bbed96e9-5044-49f9-a93b-d5a492ebb22e%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/bbed96e9-5044-49f9-a93b-d5a492ebb22e%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/5D325089.9080900%40googlemail.com.