<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged japanese</title>
<link>https://www.question2answer.org/qa/tag/japanese</link>
<description>Powered by Question2Answer</description>
<item>
<title>can anybody help me about the search function for Japanese</title>
<link>https://www.question2answer.org/qa/5012/can-anybody-help-me-about-the-search-function-for-japanese</link>
<description>

&lt;p&gt;
	In japanese, there are no space between words, so this search engline can't pick up any words and but only words in tags.&lt;/p&gt;


&lt;p&gt;
	I found the following Q&amp;amp;A&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;color: #0000ff&quot;&gt;Q2A converts text into words (for searching) based on separating out words by word delimiters, like spaces (obviously), commas, quote marks, etc...&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;color: #0000ff&quot;&gt;You can see the full set used at the top of qa-util-string.php, in the constant QA_PREG_INDEX_WORD_SEPARATOR and also in the mapping $qa_utf8punctuation which converts UTF-8 punctuation characters.&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;color: #0000ff&quot;&gt;In the case of Chinese and similar languages, there are no word delimiters per se, but rather each multibyte (UTF-8) character is essentially a separate word.&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;I don't know what exactly how I do that. It wound very much appreciate if someone write me a code and tell me where I put it on which file.&lt;/p&gt;


&lt;p&gt;
	One of the usrs wrote the following code but it seems to be problem because of slowness.&lt;/p&gt;


&lt;p&gt;
	That is what he did:&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;color: #0000ff&quot;&gt;open qa-include/qa-db-selects.php file and go to qa_db_search_posts_selectspec() function.&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;nbsp;
&lt;br&gt;
	Just before below line ( almost end of function )
&lt;br&gt;
	&amp;nbsp;
&lt;br&gt;
	if ($selectparts==0)
&lt;br&gt;
	&amp;nbsp;
&lt;br&gt;
	add this lines
&lt;br&gt;
	&amp;nbsp;
&lt;br&gt;
	&amp;nbsp;
&lt;br&gt;
	if (!empty($handlewords)) {
&lt;br&gt;
	$aaa = implode($handlewords);}
&lt;br&gt;
	else
&lt;br&gt;
	{$aaa = $handlewords;}
&lt;br&gt;
	&amp;nbsp;
&lt;br&gt;
	$selectspec['source'].=($selectparts++ ? &amp;quot; UNION ALL &amp;quot; : &amp;quot;&amp;quot;).
&lt;br&gt;
	&amp;quot;(SELECT postid AS questionid, 0 AS score, _utf8 'Q' AS matchposttype, postid AS matchpostid FROM ^posts JOIN ^users WHERE (^posts.title like _utf8 '%&amp;quot;.$aaa.&amp;quot;%' OR ^posts.content like _utf8 '%&amp;quot;.$aaa.&amp;quot;%' ) AND type='Q' )&amp;quot;;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	
&lt;br&gt;
	This will work fine, except if your database starts containing a large amount of content, in which case it could become quite slow.&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/5012/can-anybody-help-me-about-the-search-function-for-japanese</guid>
<pubDate>Tue, 08 Mar 2011 20:55:59 +0000</pubDate>
</item>
<item>
<title>Can Japanese be used?</title>
<link>https://www.question2answer.org/qa/4889/can-japanese-be-used</link>
<description>Can Japanese be used?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/4889/can-japanese-be-used</guid>
<pubDate>Mon, 28 Feb 2011 02:23:13 +0000</pubDate>
</item>
<item>
<title>How can I convert string into words in a mixed-language question?</title>
<link>https://www.question2answer.org/qa/4852/how-can-convert-string-into-words-in-mixed-language-question</link>
<description>I have same problem when searching question or answer in japanese. Like chinese, japanese sentence has no space between words.&lt;br /&gt;
&lt;br /&gt;
Gidgreen gave us a clue to deal with such kind of problem inserting space between characters so it can be splitted into words .But I still have trouble with this. My site is not pure japanese, It mixes between Japanese and Vietnamese (separates words by space like English). For example, sometime i got a question like this: [ Vì sao người Nhật không nói 愛している ?] or [にあずからなかった cấu trúc này là như nào vậy] . In this case, the solutions does not work well, because it may change vietnamese word into splitted characters like this: không ---&amp;gt; k h ô n g&lt;br /&gt;
&lt;br /&gt;
Have you got any idea to deal with this?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/4852/how-can-convert-string-into-words-in-mixed-language-question</guid>
<pubDate>Fri, 25 Feb 2011 03:03:42 +0000</pubDate>
</item>
</channel>
</rss>