Plugin can't handle non-ASCI characters and other bugs (incl. suggestions for solutions)

Despite having the configuration file saved as UTF-8 (double-checked in two editors) the select drop downs showed ? where scandinavian characters like åäö should be we solved this by wrapping mb_convert_encoding($blog_type, ‘UTF-8’:wink: and mb_convert_encoding($blog_subtype, ‘UTF-8’:wink: where the options are echoed.

Other bugs:

$selected = ' selected="selected"';

Should be:

$selected = ' selected';

Because it is a boolean value and the selected=”selected” is not HTML or XHTML.

We also would like the style=”” attributes moved into a CSS files, the size os just humongous and it can’t be overridden like it is right now. We have solved this by simply deleting the attributes right away from the code the blog-types.php file and now it looks just fine!

The file also contains some code like this, which is invalid HTML:

<script language='javascript'>

But should instead be:

<script type="text/javascript">

On a two places the select elements use id=”blog_types[]” and on two places id=”blog_subtypes[]”, this is not valid HTML, the characters [ and ] are not allowed in the id attribute. They are only necessary in the name attribute anyway.