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!
I'm using mail() to send variables picked up in a flash movie to an e-mail account. The problem is that in my language (portuguese) we use accentuation in characters and the "special" chars appear like rubbish in the e-mail sent. Could you help me to work out this one?
umm let's see if it'll display right here when i try to show what character i used: á
if you know those, you can make a preg function to conver tot eh equivalents and send either html (á) or possibly plaintext if you use the ascii (á)
the charset could be either utf-8 or windows-1252 (I think).
I believe that the function m3rajk wrote about is what I'm looking for. I really dunno how to implement it in my code, but I'll see what I find about that. oh, and the codes used are like these:
that's becasue you're picking it up in one character set and reading it in another.
make sure it' sent int he same one used to display.
or send as html and use the HTML shorts (&#aacute;) instead of ascii
i actually had this problem with something before, so i'm about 99% sure you're sending it in a diff character set than you're picking it up in but not converting between them. for my purposes, since i had several people using different displays i was able to pick up on that beig the actual problem (and becasue it displayed right for me) and found the easiest thing to do was to convert to html shorts and that worked.
no problem. like i said, i think i was in your shoes once, and ifi'm right then i just happend to luck out because the issue was showing itself in a way that made the actual problem quite clear and the solution (initially char set conversion) was an issue so i asked a friend that pionted me to an easier solution, now i'm pointing you there