Jump to content

Spell checking UTF-8 text with HunSpellChecker class


msoutopico

Recommended Posts

Hi there, 

 

I'm having a issue with a library that enables spell checking functionality in PHP when the text contains non-ASCII characters. 

 

I have posted the request for help in Stack Overflow but I got no answers there: http://stackoverflow.com/questions/22878677/spell-checking-utf-8-text-with-hunspellchecker-class

 

If anyone can help, I guess the best is to post answers there, so as not to duplicate efforts. 

 

Cheers, Manuel

Thank you, jazzman1. I'll explore your suggestions. 

 

I thought it would be better to post a link to the original question in another forum than copying/pasting the whole question here. Perhaps I should have posted the full question here and add a link to this forum in Stack Overflow, given that I didn't get any answers there. I don't know, but at least both questions should be linked, I think.

 

Cheers, Manuel

Hi again,

 

I had a look at the mb functions (which I had already done), but as I don't really know what the problem is, I don't know which function could help. 

 

I think the problem is that the double-byte characters in the strings are handled as word boundaries when the string is written to a resource (not a file) by fwrite. That's all I could find out. Perhaps there's a way to fwrite multibyte text? 

 

Any further hints? 
 

Thanks a lot.

 

Cheers, Manuel

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.