1Using Swift Mailer for Japanese Emails
2======================================
3
4To send emails in Japanese, you need to tweak the default configuration.
5
6Call the ``Swift::init()`` method with the following code as early as possible
7in your code::
8
9    Swift::init(function () {
10        Swift_DependencyContainer::getInstance()
11            ->register('mime.qpheaderencoder')
12            ->asAliasOf('mime.base64headerencoder');
13
14        Swift_Preferences::getInstance()->setCharset('iso-2022-jp');
15    });
16
17    /* rest of code goes here */
18
19That's all!
20