Trouble when using utf-8 encoded folder names

View: New views
2 Messages — Rating Filter:   Alert me  

Trouble when using utf-8 encoded folder names

by wiseguy-bike :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hallo,

I want to use utf-8 Folder names. But the config.pl says:
"Folder name contains 8bit characters. Configuration utility requires
UTF7-IMAP encoded folder names."

What can I do for using them?

Re: Trouble when using utf-8 encoded folder names

by Tomas Kuliavas :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

wiseguy-bike wrote:
Hallo,

I want to use utf-8 Folder names. But the config.pl says:
"Folder name contains 8bit characters. Configuration utility requires
UTF7-IMAP encoded folder names."
Create php file (ex. test.php) which contains
---------------------------------
<?php
header('Content-Type: text/html; charset=utf-8');
?>
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 4.01 Transitional//EN">
<html><head>
<title>String to UTF7-IMAP</title>
</head>
<body>
<?php
echo "<p>";
if (isset($_POST['folder_name'])) {
echo "UTF7-IMAP folder name is <br>\n ";
echo htmlspecialchars(mb_convert_encoding($_POST['folder_name'], "UTF7-IMAP", "UTF8"));
echo "</p>\n<hr>\n";
}
?>
<p>
<form action="utf7-imap.php" method="POST">
String: <input type="text" name="folder_name" value=""><br>
<input type="submit" value="convert">
<input type="reset" value="reset">
</form>
</p>
<body>
<html>
---------------------------------

Put it somewhere on your website.

Open it in browser (http://your-website/somepath/test.php) and use form to convert text to UTF7-IMAP character set.

If you don't want to use that script, create folders in SquirrelMail and check folder names in left folder listing links. mailbox=something URL arguments show your folders in UTF7-IMAP.

Configuration utility needs folder names in UTF7-IMAP, because IMAP servers use this charset. If configuration utility had to accept other charsets, it would have to load additional Perl modules. Plus utility would have to handle all possible terminal's character set variations.

--
Tomas