sorry, I did not verify it very well, the utf-8 problem is still
there. :(

case1.)use $p
if (strpos(",$exists,", ",$pp,") === false) unset($info[$p]);
else $out .= "$p: $v\n";

It not only clean the non-exist entry in info.tags, but also clean the
existing entry with Chinese $p.
It seems erase non-exist entry and all page name with Chinese.

info.tags example, assume there're 2 existing pages:exist.abc and
exist.中文:
exist.abc: aa 中文 <- will be kept(correct, even it contains Chinese
tag)
exist.中文: aa bb <- will be clean/erased(not correct)
non-exist.abc: dd <- will be clean/erased(correct)
non-exist.中文: dd < will be clean/erased(correct)

case2.) use $pp
if (strpos(",$exists,", ",$pp,") === false) unset($info[$pp]);
else $out .= "$p: $v\n";

It will clean the non-exist entry without Chinese, but it can't clean
the one with Chinese.

info.tags example:
exist.abc: aa 中文 <- will be kept(correct, even it contains Chinese
tag)
exist.中文: aa bb <- will be kept(correct)
non-exist.abc: dd <- will be clean/erased(correct)
non-exist.中文: dd < will be kept(not correct)

3.)about saving info.tags
The $out in both case1 and case2 are the same, all entry that page
name($p) contains Chinese will be erased.
so the result of BOLTsavepage($target, $out) is not correct, either.
but the strange thing is that if the tag($v) contains Chinese it will
be ok, no problem at all.
It will be erase only if the page name contains Chinese.

On 4月22日, 上午3時43分, The Editor <[email protected]> wrote:
> Oh, and shouldn't that one line be
>
>         if (strpos(",$exists,", ",$pp,") === false) unset($info[$p]);
>
> with a single $p rather than a $pp?
>
> Cheers,
> Dan
>
> --
> You received this message because you are subscribed to the Google Groups 
> "BoltWire" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group 
> athttp://groups.google.com/group/boltwire?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en.

Reply via email to