msoutopico Posted April 13, 2014 Share Posted April 13, 2014 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 Link to comment https://forums.phpfreaks.com/topic/287730-spell-checking-utf-8-text-with-hunspellchecker-class/ Share on other sites More sharing options...
jazzman1 Posted April 13, 2014 Share Posted April 13, 2014 You need to use multibyte string functions. BTW: It's not very ethical to us, members posting only a link to other help forum/channel trying to get a faster help. Link to comment https://forums.phpfreaks.com/topic/287730-spell-checking-utf-8-text-with-hunspellchecker-class/#findComment-1475946 Share on other sites More sharing options...
msoutopico Posted April 15, 2014 Author Share Posted April 15, 2014 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 Link to comment https://forums.phpfreaks.com/topic/287730-spell-checking-utf-8-text-with-hunspellchecker-class/#findComment-1476203 Share on other sites More sharing options...
msoutopico Posted April 15, 2014 Author Share Posted April 15, 2014 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 Link to comment https://forums.phpfreaks.com/topic/287730-spell-checking-utf-8-text-with-hunspellchecker-class/#findComment-1476211 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.