I have written a program to read a certain text file from the hard-drive, parse it, and send it to a remote PHP page.
Here is the file-reader, pushing a parsed line into a stack of Strings S1, from which I later extract a batch of 10 lines, and send them to a remote php file:
After passing the string to the PHP page, the PHP code acquires the relevant data using $_POST["data"], and echos it. I noticed strange anomalies in the echoed strings.
Strange special characters appeared in the place of the normal ones. Strings were cut in the middle.
Part of the original string sent was:
Quote
0%Stoica Alina Alina%Formidon Young%74|
Instead, the server logged:
Quote
0%Stoica Alina Alina%Formidon YoungU|
The strange characters lead me to believe there's an encoding problem, but I can't find an explanation for the cut strings...
Could this be a problem on the PHP side? Is there a solution?
Thank you for your time, and sorry for the trouble! :)
Edited by TheMZ, 27 October 2010 - 05:58 AM.


Sign In
Create Account

Back to top









