How to fetch chinese words in a text file
Posted: Thu Nov 02, 2006 11:33 pm
Hello all,
Now I wanna get links' address from a webpage such as researching result from google search engine. In order to get the addresses, I convert the page to HTML Code. Then, based on the pattern of the searching result in the codes, i am trying to get address, but i encountered problems.
1) The file with HTML codes has english words, chinese words and so on. How do I search a chinese word by php. Are there any classes for me to solve the problem.
2) When I use fgetc() function for a long time, there is an error prompted to me. Is it time limitation for use of the function? How to solve it?
Please help me!!
thanks,
Brian
Now I wanna get links' address from a webpage such as researching result from google search engine. In order to get the addresses, I convert the page to HTML Code. Then, based on the pattern of the searching result in the codes, i am trying to get address, but i encountered problems.
1) The file with HTML codes has english words, chinese words and so on. How do I search a chinese word by php. Are there any classes for me to solve the problem.
2) When I use fgetc() function for a long time, there is an error prompted to me. Is it time limitation for use of the function? How to solve it?
Please help me!!
thanks,
Brian