in reply to How do I know what encoding was used for form input?

One thing you must keep in mind is that the data (other than ascii) is multi byte. Hence any string operation (such as slicing) will corrupt the data, if you don't take care. For more info read:
  1. perluniintro
  2. perlunicode
  • Comment on Re: How do I know what encoding was used for form input?