[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] use HTML::Entities in UserTag?] SOLVED!!!
****** message to minivend-users from jojo@buchonline.net ******
On 15 Mar, cfm@maine.com wrote:
[DEL]
>> return join '<BR>',@INC; # where is perl
>
> Put that in your UserTag. See what it says. It should be
> a list of paths.
And the list is right!
I noticed, if i edited my UserTag files in minivendroot/usertag with
xemacs, xemacs store the old file with "~" and after restarting the
minivend server. All changes has no effect. Mike could you so kind to
filter out this kind of files with "~"?
>> A little perl script like
>>
>> --------snipp--------
>> #!/usr/bin/perl
>> use HTML::Entities;
>> $string = 'MÜLLER';
>> encode_entities($string);
>> print $string . "\n";
>> --------snapp--------
>
>
> Try that exact snippet in your usertag. Does it work?
It say "MÜLLER"! (with "my $string... and return $string...).
> Try this too:
> sub {
> my ($message) = @_;
> # use HTML::Entities;
> # encode_entities($message);
> # $message = $message;
> return $message;
> }
It say "ü-ü-ü-ü"
from my test.html file and the test.html file has:
[decode]ü-ü-ü-ü[/decode]
> You need to get it to do **something** and then you can fix.
[1 hour later]
[a lot of coffe later]
[to much cigarette later]
YEEEAAHHH!
This is the codes:
# [decode] message [/decode]
#
# This tag is the equivalent of [L] ... [/L] localization, except
# it works with contained tags
#
UserTag decode hasEndTag 1
UserTag decode Interpolate 1
UserTag decode Routine <<EOF
sub {
my ($message) = @_;
$_ = $message;
HTML::Entities::decode_entities($_);
return $_;
}
EOF
Hi cfm, thank you a lot!!!
Joachim
--
Hans-Joachim Leidinger
buch online jojo@buchonline.net
Munscheidstr. 14 FAX: +49 209 1971449
45886 Gelsenkirchen FAX: 0209 1671449
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list