Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] double-byte language problem



******    message to minivend-users from jojo@buchonline.net     ******

On 26 May, zhms wrote:
> ******    message to minivend-users from "zhms" <zhangmosong@hotmail.com>     ******
> 
> (in minivend 4.04, Redhat 6.0, perl 5.6.0.)
> 
> i am working with the "simple" demo. when i changed category column in products.txt into Chinese, the index page was still OK, but when i clicked the link(it's in Chinese), the results page was not in good state. the category name was in chaos.
> 
> i noticed that (in results page, pages/results.html)
> [value-extended mv_searchspec joiner=" |    "}
> in TITLE got null output when 
> [value-extended name=mv_searchspec joiner=" |    "]
> in H1 got turbid strings that couldn't be recognized. but when i used a hex edit to study it, i found that these double-byte characters was all escaped by a "\" byte by byte. That's why i saw the chaos.
> in pages/index.html, 
> [area href=scan
>     arg='
>         sf=category
>         se=[loop-code]
>         tf=category,title
>         ml=2
>     '
> ]
> when i used Chinese directly in place with "[loop-code]", i still got the chaos.
> 
> i tried to use MiniMate to edit the products, still, i got failure. For i was just begin to study perl, so i was not able to hack into the code to find out the truth, so could anyone so earnest help me settle the problem?
> 
> thanks in advanced
> ecool
> 2000.5.26

How did your product.txt look? An example!
Are you able to get a successfull result with

------------snip test.html-------
<HTML><HEAD><TITLE>TESTPAGE</TITLE></HEAD>
<BODY>
This is a test!
<BR>

Can I see the item No. 1234? : [data table="products" column="sku" key="1234"]

</BODY> </HTML>
------------snip-------

What you get with this testpage?

Regards,

	Joachim

-- 
Hans-Joachim Leidinger
buch online                 jojo@buchonline.net
Munscheidstr. 14            FAX: +49 209 1671449
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


Search for: Match: Format: Sort by: