in reply to utf8 forever OR what are the best practices ...?
This will allow you to write unicode strings into the source and automatically handle encoding/decoding on read/write in new filehandles. Mind that if you read data from databases, external APIs or whatever other source that is not a filehandle, you will still need to set the specific options or decode it yourself, it will all the depend on the library used. Unfortunately, there is no one magic setting which will set everything to utf8.use utf8; use open ':encoding(UTF-8)';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: utf8 forever OR what are the best practices ...?
by pcouderc (Monk) on Dec 19, 2018 at 11:00 UTC |