I am working with QSslSocket to get Gmail emails. I want to check all folders in server:

Qt Code:
  1. QSslSocket::write("tag LIST \"\" \"*\"");
To copy to clipboard, switch view to plain text mode 

The output is:

Qt Code:
  1. * LIST (\HasChildren) "/" "INBOX"
  2. * LIST (\HasNoChildren) "/" "INBOX/Test1"
  3. * LIST (\HasNoChildren) "/" "INBOX/Test2"
  4. * LIST (\Noselect \HasChildren) "/" "[Gmail]"
  5. * LIST (\HasNoChildren \All) "/" "[Gmail]/Alle Nachrichten"
  6. * LIST (\HasNoChildren \Drafts) "/" "[Gmail]/Entw&APw-rfe"
  7. * LIST (\HasNoChildren \Sent) "/" "[Gmail]/Gesendet"
  8. * LIST (\HasNoChildren \Flagged) "/" "[Gmail]/Markiert"
  9. * LIST (\HasChildren \Trash) "/" "[Gmail]/Papierkorb"
To copy to clipboard, switch view to plain text mode 

Then I want to select one of those folder, I select INBOX folder for example:

Qt Code:
  1. QSslSocket::write("tag SELECT INBOX");
To copy to clipboard, switch view to plain text mode 

It works fine, but when I select folder "[Gmail]/Entw&APw-rfe", it does not work anymore. I think the problem is the encoding of text "Entw&APw-rfe" (in unicode is "Entwürfe"). So how can I get exactly the name of the folder in unicode and input it in command? Does Qt have a library to process this?
Thanks for help!