unicode exec problems

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mcog_esteban
Forum Contributor
Posts: 127
Joined: Tue Dec 30, 2003 3:28 pm

unicode exec problems

Post by mcog_esteban »

hello.
i'm having a bit of a nightmare get this to work:

i have a script that at some point passes a string to be executed with exec (a java call).
The problem is that this string gets to java corrupted, ie, let's say i send

Code: Select all

exec('java Test antónio', $status)
, java sees argument as ant?nio.
If a debug that string to a file, it saves the string right
If i run that string (java Test antónio) in the command line it works great

Any ideas of what i'm forgetting or doing wrong here ?
Thank you in advance.
Post Reply