Export to PHP Extra Characters (#38)

Exporting to PHP source code, the first line appears like:


3 bogus characters before <?php need to be removed.

Awesome improvements, so far!

26 March 2012 22:40:52
1 April 2012 13:48:51
Requested by
Windows XP Pro SP3
Solved in

Dusan Rodina - softwareideas.net 27 March 2012 14:35:46

I can't reproduce this problem.

Maybe, you can check, whether the template files were correctly unpacked/installed - the default path to PHP templates is: C:\Program Files\SoftwareIdeasModeler\Data\Templates\Code\Php\Default

The files Class.php, Enum.php and Interface.php should start with <?php without the bogus symbols.

If these files are correct, please, would you create a sample diagram, where this problem occurs and send it to my e-mail?

Thank you in advance for your cooperation.

Tyler 27 March 2012 19:10:20

I just realized the bogus characters only show up using the Bluefish editor. Notepad++ shows no such issue. Perhaps a problem with the former and not SIM.

Dusan Rodina - softwareideas.net 28 March 2012 3:10:31

I didn't realize it before - these characters (hex representation: EF BB BF) are byte order marks of UTF-8. Defaultly they are not displayed in text editors. I can add an option to change the encoding in the next version.

Dusan Rodina - softwareideas.net 1 April 2012 13:49:31

From version 5.11 you can choose the encoding for generated source code files.

Your Name:
You can use these formatting tags: [b]bold[/b] [i]italic[/i] [u]underline[/u] [url]www.example.com[/url] [code]some code[/code] [quote]quoted text[/quote] [list]one list item per line[/list]