Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help ! No results when including <meta name="MS.LOCALE" content="zh-cn"> in chinese pages

0 views
Skip to first unread message

jazzdrums

unread,
Oct 18, 2005, 3:55:48 PM10/18/05
to
Hi,

I'm running windows 2003 server in french and I need to index and query
chinese pages on a chinese version of my website. I have this really
strange behaviour :

When I have the tag <meta NAME="MS.LOCALE" CONTENT="ZH-CN"> in my
chinese HTML files, a chinese query in my code doesn't return anything.
But the english words in the chinese text are found. When I REMOVE this
tag in the file, it works !

My chinese HTML files are encoded in GB2312 and contain the tag <meta
HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">.

I do the query with the parameters
objQuery.CodePage=950;
objQuery.LocaleID=1028;

I would like to understand this because I think that maybe when
removing the tag, index server doesn't process the file as a chinese
one and just recognize the query as a sequence of special characters
and not real chinese words.

What do you think of that ?
Thank you in advance if you can help

Hilary Cotter

unread,
Oct 19, 2005, 10:20:24 AM10/19/05
to
is this .Net? You have to set the culture in your web.config file for
Chinese.

Hilary
"jazzdrums" <jazz...@free.fr> wrote in message
news:1129665348....@g47g2000cwa.googlegroups.com...

jazzdrums

unread,
Oct 19, 2005, 11:25:30 AM10/19/05
to
Thank you so much for answering me hilary. Yes the culture is set in
the web.config like that :

<globalization fileEncoding="gb2312" requestEncoding="gb2312"
responseEncoding="gb2312" culture="zh-CN" uiCulture="zh-CN"/>

Do you have any other idea to investigate ? I really don't understand.

Just one more detail but I think it has nothing to do with the problem.
Since we're running a french Windows server and that our initial
websites are in english, I change this registry key in order to use by
default the english word breaker for french:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ContentIndex\Language\French_French\Noisefile
noise.enu

But for chinese, default settings have been kept.

Thanks again for your help

Vincent

jazzdrums

unread,
Oct 19, 2005, 11:26:57 AM10/19/05
to
Just to answer your question: yes, it's .NET.

jazzdrums

unread,
Nov 8, 2005, 12:04:11 PM11/8/05
to
Help again ! I still have the problem and I really don't find the
reason of it.

Thank you

0 new messages