קוד UTF-8 של חמר: כותרת לא תקינה; נסה להיות תיאור יותר מפורש

סיכום מבוסס בינה מלאכותית

Khmer Unicode Title Issue

evannak is experiencing an issue with posting a topic title in Khmer Unicode, receiving the error message “title invalid; try to be more descriptive.” The title contains a zero-width space (ZWSP) character, which might be causing the issue.

codinghorror suggests checking the site settings, specifically the language value, as title rules are enforced differently for various languages. evannak notes that there is no Khmer language option available.

codinghorror advises editing the site settings to turn off the title prettify option, which assumes Western languages, and setting the minimum topic title length to 1 character. evannak reports that these changes do not resolve the issue.

sam suggests changing the locale directly from the site settings, rather than rebootstrapping Discourse. evannak mentions that changing the locale does not solve the problem and asks about adding a Khmer locale to Discourse.

sam offers to add the Khmer locale if evannak translates the necessary strings, which evannak has already started working on.

lidel suggests that the issue might be related to the word count and title min entropy parameter. evannak notes that the language’s complex script might be causing the problem.

sam advises setting the “max word length” to 9999, which evannak confirms resolves the issue.

I’m trying to post a topic with this title “សាលា​ដំបូង​​​រាជ​​​ធានី​​​ចាប់​​​ផ្តើម​​​សវនាការ​​​ជុំ​​​នះ​​​ជម្រះ​​​សកម្ម​​​ជន​​​ និង​​​តំណាង​​​រាស្ត្រ​​​គណបក្ស​​​ប្រឆាំង​​​ពីបទ​​​កុបកម្ម​​​” in khmer khmer unicode. but it always shows this message.

I think that it might be because of title field doesn’t recorgnize the zwsp that is why it need more spaces.

Did you set the language to the right value in site settings? Certain title rules are enforced differently for different languages.

what shall i do/choose as there is no Khmer km yet? Please help to advise!
Thanks…

Try editing the site settings to turn minimum topic title length to 1 char.

Also turn off the title prettify option, since it assumes Western language.

@codinghorror Still does not work.

I suspect there might be a catch-22 with being on a western locale. Try changing to Chinese or Japanese, then rebootstrap Discourse and try an all Unicode title.

do i need to do this to rebootstrap?

./launcher bootstrap web
./launcher destroy web
./launcher start web

no you do not need to rebootstrap, you can change locale directly from the site settings

@sam I did change in setting but still no hope. anyway, any plan to add km local to discourse?

sure, if you translate it

I have finished around 200 strings will speed up for that. :slight_smile:

as my observation, it needs at least for spaces to be more descriptive.

Hm.. four spaces produces five ‘words’.
Perhaps a word count impacts calculating ‘title min entropy’ parameter?

i did try that but didnt work. maybe the language is complex script so it is not recornizing it?

set “max word length” to 9999

we had a very terrible name there, I fixed it

https://github.com/discourse/discourse/commit/1f59375c820c4457713963856dc517c1eba3bc0c

hmmm still not really work.

Broken Latin-1 text?

it just keeps asking me to put at least 4 spaces in order to have the title more descriptive.

Hi there is there anyway to fix this?

Thanks!

Did you set title max word length to 9999 ?