Status
Not open for further replies.

mansour

Customer
Hello,

I purchase the Pro Version and it works perfectly, but what disappointed me is that #Hash_tags do not support other languages, such as Arabic, Hindi, Japanese and Chinese.

#هاش
#ハッシュタグ
#包括
#हैशटैग

Are you planning to fix this or is it impossible to achieve?

Cheers.
 
Upvote 0
This suggestion has been closed. Votes are no longer accepted.
Fillip H.

I think fixing this may solve the problem:

PHP:
	if (!$matches = USERTAG::match(preg_replace('#\[(\w+?)(?>[^\]]*?)\](.*)(\[/\1\])#siU', '', $message), 'hash'))

Cheers.
 
Submitting a reply via AJAX will mangle unicode, that's a limitation of AJAX technology.

Are you saying you've tested the above code and found that it only strips everything in between QUOTE tags, and enables hash tags to work with unicode?
 
Submitting a reply via AJAX will mangle Unicode, that's a limitation of AJAX technology.

This is a Go Advanced reply, and Unicode is not supported:

#هاش

I don't think AJAX has anything to do with it.

Are you saying you've tested the above code and found that it only strips everything in between QUOTE tags, and enables hash tags to work with unicode?

No, I haven't. I just thought that this code could prevent Unicode characters and it would be the cause of the problem.

Thanks for your concern, Fillip H. and I hope you fix this issue.
 
Hello Fillip H.

I see that the status has been changed to "Declined"

Does that mean that this suggestion will not be under consideration and the product will not support Unicode?
 
obviously, the feature supports Unicode but something keeps it from enabling it with the hashtag symbol #

http://www.dragonbyte-tech.com/usertag.php?do=list&action=hash&hash=هاش

hash.PNG

#%D9%87%D8%A7%D8%B4
#D987D8A7D8B4


I think the problem is with % and & symbols because most Unicode characters use them.

Trying a spanish word:

El_Nino

[URL=http://www.dragonbyte-tech.com/usertag.php?do=list&action=hash&hash=El_Ni]#El_Ni no[/URL]

----
Quick reply:

#El_Ni ño

Trying a spanish word:

[URL=http://www.dragonbyte-tech.com/usertag.php?do=list&action=hash&hash=El_Ni]#El_Ni no[/URL]

----
Go Advanced reply:

#El_Ni ño

A Go Advanced reply with lowercase letters:


[URL=http://www.dragonbyte-tech.com/usertag.php?do=list&action=hash&hash=el_ni]#el_ni no[/URL]
#el_ni ño



el_nino
el_niño
 
Last edited by a moderator:
I will look into this further, but I can't guarantee I will be able to resolve it.
 
I will look into this further, but I can't guarantee I will be able to resolve it.

Never mind Fillip, We've solved the problem this morning.

P.S.

We only solved the support of Arabic Characters.

Thank you for your concern.
 
Last edited:
Would you mind telling me how you solved it? If it's something I can add to the product, I would be more than happy to do so :)
 
Fillip H.

With pleasure...

We Changed this:
PHP:
	if (preg_match('/[^\w-]/i', $letter) OR in_array($letter, array(';', '', ' ', "\r", "\n", "\t", "\s", ".", ","))) // in_array($letter, array(';', '', ' ', "\r", "\n", "\t", "\s", ".", ","))

into this:

PHP:
if (
								preg_match('/#[^\s]*/i', $letter) ||
								in_array($letter, array(';', '', ' ', "\r", "\n", "\t", "\s", ".", ",")))

in class_core.php


Thanks for this lovely mod.
 
Last edited:
Status
Not open for further replies.
Back
Top