[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 "ecool" <zhangmosong@hotmail.com> ******
hi, Joachim,
thanks for your reply.
sorry for use GB2312 codeset(Chinese) that maybe u can't read.
really my index.html, and results.html, products.txt are all the same as they are in "simple" demo except that they were translated into chinese.
the problem was that after i got the categories list in index.html in browser(it's OK), i clicked at a category to see the items in that category. and then, the category name, sent throght se(mv_searchspec), i suppose, became in disorder, the result items were right, just the category name was in disorder for double-byte character reason, i think. MiniVend could do well with your test.html page.
here is my index.html
-----------------------start here
<HTML><HEAD><TITLE>__COMPANY__目录</TITLE></HEAD>
<BODY __BODY__>
[comment]
This is the default page of the catalog.
[/comment]
<IMG SRC="__LOGO__"><BR>
<H1>欢迎光临__COMPANY__</H1>
[if session logged_in]
<H2>你好, [value fname] [value lname], username "[data session username]"!</H2>
[/if]
我们有如下产品出售,请随意选购:
<P>
<UL>
[loop search="
ra=yes
un=yes
tf=category
rf=category
ml=10000
"
]
<LI> <A HREF="[area href=scan
arg='
sf=category
se=[loop-code]
tf=category,title
ml=2
'
]">[loop-code]</A></LI>
[/loop]
</UL>
[include pages/menubar]
</BODY> </HTML>
<!-- current page: @@MV_PAGE@@ -->
-----------------------end here
here's my results.html
-----------------------start here
<!-- ####################### HERE.. title, got empty results. -->
<HTML><HEAD><TITLE> 搜索结果: [value-extended mv_searchspec joiner=" | "] </TITLE></HEAD>
<BODY __BODY__>
<!-- ####################### HERE.. h1, got disordered codeset -->
<H1> 搜索结果 -- [value-extended name=mv_searchspec joiner=" | "] </H1>
[search-region]
[search-list]
[item-increment]. [page href="[item-code]"][item-description][/page]: [order code="[item-code]"][item-price][/order]<BR>
[/search-list]
[no-match]
<BR><BR><BLOCKQUOTE>
Sorry, no matches for <B>[value-extended name=mv_searchspec joiner=" | "]</B>.
[if value mv_search_error]
<P><B>Errors:
<BR> [value-extended name=mv_search_error joiner="<BR>"]
</B>
[/if]
<BR><BR></BLOCKQUOTE>
[/no-match]
<BR CLEAR=LEFT>
[more-list]
<BLOCKQUOTE>
Matches [matches] of
[if value mv_search_match_count > 1]
[value mv_search_match_count] found.
[/if]
<BR>[more]<BR>
</BLOCKQUOTE>
[/more-list]
[/search-region]
[include pages/menubar]
</BODY> </HTML>
<!-- current page: @@MV_PAGE@@ -->
-----------------------end here
and here's my products.txt
-----------------------start here
sku description title artist comment display image price category nontaxable weight size color related featured
00-0010 最后的晚餐,达芬奇 最后的晚餐 李奥纳多达芬奇 "1498, Tempera on plaster, 460 x 880 cm (15 x 29 ft.)" "Convent of Santa Maria delle Grazie (Refectory), Milan" lastsupp.jpg 30000000 文艺复兴 8 00-0011a Front
00-0011 "MONA LISA, Da Vinci" Mona Lisa LEONARDO da Vinci What was she smiling about? The Louvre 00-0011.jpg 50000000 文艺复兴 no 8 00-0011a
00-0011a Gilded Frame signed by Da Vinci Frame Gilded 00-0011a.png 1000 小物件 1 20
00-2001 "The Madonna of the Magnificat, BOTTICELLI" The Madonna of the Magnificat "BOTTICELLI, Sandro" "c. 1485, Tempera on panel, diameter 118 cm" "Uffizi, Florence" magnificat.jpg 8000000 文艺复兴 7
00-2002 "Portrait of a Young Man, BOTTICELLI" Portrait of a Young Man "BOTTICELLI, Sandro" "c. 1480-85, Wood, 37.5 x 28.2 cm" "National Gallery, London" young_man.jpg 10000000 文艺复兴 5
00-340 "Irises, VAN GOGH" Irises "VAN GOGH, Vincent" "1889, Oil on canvas, 28 x 36 3/4 in. (71 x 93 cm)" "Getty Museum, Malibu, California" irises.jpg 40000000 印象主义 5 00-341 00-342 Front
00-341 "SUNFLOWERS, by Van Gogh" Sunflowers "VAN GOGH, Vincent" An exquisite painting showing Van Gogh at the height of his pointillist powers. The Louvre 00-341.jpg 40000000 印象主义 no 40
00-342 "THE STARRY NIGHT, Van Gogh" The Starry Night "VAN GOGH, Vincent" Breathtaking example of Van Gogh's work. MOMA 00-342.jpg 30000000 印象主义 no 10
00-343 "PERSISTENCE OF MEMORY, Dali" Persistence of Memory "DALI, Salvador" How does he do that? MOMA 00-343.jpg 20000000 超现实主义 no 10
00-344 "Illumined Pleasures, DALI" Illumined Pleasures "DALI, Salvador" "1929, Oil and collage on composition board, 9 3/8 x 13 3/4 in." " The Museum of Modern Art, New York" illumined_pleasures.jpg 5000000 超现实主义 5 00-343
00-402 "Golconde, MAGRITTE" Golconde "MAGRITTE, Rene" "1953, Oil on canvas, 31 1/2 x 39 1/2 in." " The Menil Collection, Houston, Texas" golconde.jpg 7000000 超现实主义 5
00-403 "Self-Portrait with Loose Hair, KAHLO" Self-Portrait with Loose Hair "KAHLO, Frida" "1947, Oil on masonite, 24 x 17 3/4 in. (61 x 45 cm)" Private collection loose_hair.jpg 2000000 超现实主义 5 00-404 Front
00-404 "The Two Fridas, KAHLO" The Two Fridas "KAHLO, Frida" "1939, Oil on canvas, 68 x 68 in. (173 x 173 cm)" "Museo de Arte Moderno, Mexico City" two_fridas.jpg 3000000 超现实主义 5 00-403
19-203 "PANORAMIC PROCESSION, Keiko" Panoramic Procession KEIKO You are in a series of twisty passages.... South Beach Gallery 19-203.jpg 200000 超现实主义 no 5
19-204 "ERA'S END, Keiko" Era's End KEIKO Stranger and stranger... South Beach Gallery 19-204.jpg 300000 超现实主义 no 5
21-221 "AMERICAN GOTHIC, by Wood" American Gothic "WOOD, Grant" The quintessential piece of 美国艺术. Art Institute 21-221.jpg 10000000 美国艺术 no 10 99-102 Front
22-002 "Paul as Harlequin, PICASSO" Paul as Harlequin "PICASSO, Pablo" "1924, Paris, Oil on canvas, 130 x 97.5 cm" "Musee Picasso, Paris" paul_harlequin.jpg 12000000 抽象派 5
22-003 "Woman with a Fan, PICASSO" Woman with a Fan "PICASSO, Pablo" "Paris, [late spring] 1908, Oil on canvas, 59 7/8 x 39 3/4 in. (152 x 101 cm.)" "The Hermitage Museum, St. Petersburg" womanfan.jpg 10000000 抽象派 5
22-200 "Number 1A, 1948, POLLOCK" "Number 1A, 1948" "POLLOCK, Jackson" "1948, Oil on canvas, 68"" x 8'8""" "The Museum of Modern Art, New York" pol2.jpg 4000000 抽象派 10 22-201
22-201 "The Key, POLLOCK" The Key "POLLOCK, Jackson" "1946, Oil on canvas, 59 x 84 in." The Art Institute of Chicago pol1.jpg 5000000 抽象派 12 22-200
34-101 "FAMILY PORTRAIT, by Langan" Family Portrait "LANGAN, Jean" Haunting view of Grandma's Parlor Krannert 34-101.png 1000000 美国艺术 no 10
98-101 "Black Cross, New Mexico, O'KEEFFE" "Black Cross, New Mexico" "O'KEEFFE, Georgia" "1929, Oil on canvas, 99.2 x 76.3 cm" The Art Institute of Chicago okeefe1.jpg 8000000 表现主义 3 98-102 Front
98-102 "Red Canna, O'KEEFFE" Red Canna "O'KEEFFE, Georgia" "c. 1919, Oil on board, 12 x 9 in. (30.5 x 22.9 cm)" Private collection okeeffe6.jpg 5000000 表现主义 5 98-101
99-102 THE ART STORE T-SHIRT The Art Store T-Shirt The Art Store Guaranteed to be of the finest cheap T-shirt material A Store Near You tshirt.jpg 10 衬衣 no 1 "S=Small, M=Medium, L=Large*, XL=Extra Large" "red=Ruby Red, blue=Sky Blue*, green=Sea Green, Black, White"
99-301 "Chair Car, HOPPER" Chair Car "HOPPER, Edward" "1965, Oil on canvas, 40 x 50 inches" Private collection chair_car.jpg 900000 美国艺术 5 Front
99-322 "My Gems, HARNETT" My Gems "HARNETT, William" "1888, Oil on wood, 18 x 14 in. (45.7 x 35.5 cm)" "National Gallery of Art, Washington" my_gems.jpg 1000000 美国艺术 5
-----------------------start here
----- Original Message -----
From: <jojo@buchonline.net>
To: <minivend-users@minivend.com>
Sent: Friday, May 26, 2000 4:28 PM
Subject: 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
>
-
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