Jump to content

msoutopico

New Members
  • Posts

    5
  • Joined

  • Last visited

msoutopico's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. 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
  2. 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
  3. 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
  4. Hi Josh, Thank you very much for your kind answer. It turns out that my code was okay, the problem was the encoding of the file. I was using UTF-16 Little Endian, because it will need to contain text in double-byte languages (Asian languages, etc.). I tried changing it to ASCII and the script worked. So now I guess I need to find a way for my script to read double-byte stuff. Thanks a lot! Cheers, Manuel
  5. Hi there, I'm struggling a bit with this. This works fine: line 99: preg_match('^\s', $xmlElem) However, I shouldn't be writing the pattern there directly, because the pattern is in a tab-separated file. If I get it with fgetcsv and put it in another variable $pattern = $data[0]; echo $pattern; // outputs ^\s and then use that variable in the above match line 99: preg_match('/'. $pattern .'/', $xmlElem) then I get an error like: and there's no match. Could anyone help me out? Thank you so much! Cheers, Manuel
×
×
  • 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.