Hi jarop
can you provide a more detailed description of the issues you're having?
I'm still trying to figure this out..
Just installed another fresh Silverstripe 2.4.5 with blackcandy theme and the latest DOM (from GitHub) on a testbed, made sure that all the db tables are utf8_general_ci and created a very basic DOM Page like so:
<?php
class BookmarkPage extends Page {
static $has_many = array (
'Bookmarks' => 'Bookmark',
);
function getCMSFields() {
$f = parent::getCMSFields();
// add bookmark manager
$manager = new DataObjectManager(
$this,
'Bookmarks',
'Bookmark',
array(
'Title' => 'Titel',
'URL' => 'URL',
'Description' => 'Mouse-Over Text',
),
'getCMSFields_forPopup'
);
$f->addFieldToTab("Root.Content.Links",$manager);
return $f;
}
}
class BookmarkPage_Controller extends Page_Controller {
}
and
<?php
class Bookmark extends DataObject {
static $db = array (
'Title' => 'Text',
'URL' => 'Text',
'Description' => 'Text'
);
public static $has_one = array (
"BookmarkPage" => "BookmarkPage",
);
public function getCMSFields_forPopup() {
return new FieldSet(
new TextField("Title", "Titel"),
new TextField("URL", "URL (Wichtig: inklusive http:// am Anfang!)"),
new TextField("Description", "Mouse-Over Text")
);
}
}
Here's what's happening.
1. When i add a new Dataobject containing Umlauts, everything seems to be working okay. I hit save, I close the Popup, the Dataobject shows up in the list all right, and also in the frontend
2. When i reopen the same dataobject to edit, the Umlauts show up garbled in the input fields (replaced with the funny öÖäÜ symbols described above). If I leave everything as it is and hit "Save", the Dataobjects again appear normally in the list and frontend.
(All throughout this process, the Umlauts are being stored in the Database correctly as öÖüÜÄäß, just like anywhere else in the system.)
3. If i reopen any existing Dataobject, add some Umlauts and hit "Save", the string will be chopped off at the first occurrence of an Umlaut (also in the database)
This was tested on Firefox 3.6, Opera 11 and IE 8. I did have to add
Requirements::set_combined_files_enabled(false);
to my _config.php to get the cms to load in any other browser than firefox, everything else is running on default settings, fresh install.
Makes me want to pull my hair out : )
UncleCheese, please help!
Many thanks
P.S. If it's helpful, I will gladly provide a link and login credentials to the system to anybody who wants to take a look at this.
------------
EDIT: Again, the issue does not occur when switching from DOM to ComplexTableField