{"action":"created","issue":{"url":"https://api.github.com/repos/yodarunamok/fxphp/issues/32","repository_url":"https://api.github.com/repos/yodarunamok/fxphp","labels_url":"https://api.github.com/repos/yodarunamok/fxphp/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/yodarunamok/fxphp/issues/32/comments","events_url":"https://api.github.com/repos/yodarunamok/fxphp/issues/32/events","html_url":"https://github.com/yodarunamok/fxphp/issues/32","id":45861909,"number":32,"title":"preg_replace_callback handling of danish characters","user":{"login":"webformdk","id":9251730,"avatar_url":"https://avatars.githubusercontent.com/u/9251730?v=3","gravatar_id":"","url":"https://api.github.com/users/webformdk","html_url":"https://github.com/webformdk","followers_url":"https://api.github.com/users/webformdk/followers","following_url":"https://api.github.com/users/webformdk/following{/other_user}","gists_url":"https://api.github.com/users/webformdk/gists{/gist_id}","starred_url":"https://api.github.com/users/webformdk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webformdk/subscriptions","organizations_url":"https://api.github.com/users/webformdk/orgs","repos_url":"https://api.github.com/users/webformdk/repos","events_url":"https://api.github.com/users/webformdk/events{/privacy}","received_events_url":"https://api.github.com/users/webformdk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2014-10-15T12:48:27Z","updated_at":"2016-08-12T23:05:37Z","closed_at":null,"body":"After latest version of FX.php where 'preg_replace' was changed to ‘preg_replace_callback’ in RetrieveFMXML.class.php, FX.php no longer display danish characters like æøå correctly - They output more like japanese characters!"},"comment":{"url":"https://api.github.com/repos/yodarunamok/fxphp/issues/comments/239580590","html_url":"https://github.com/yodarunamok/fxphp/issues/32#issuecomment-239580590","issue_url":"https://api.github.com/repos/yodarunamok/fxphp/issues/32","id":239580590,"user":{"login":"APD183","id":1529523,"avatar_url":"https://avatars.githubusercontent.com/u/1529523?v=3","gravatar_id":"","url":"https://api.github.com/users/APD183","html_url":"https://github.com/APD183","followers_url":"https://api.github.com/users/APD183/followers","following_url":"https://api.github.com/users/APD183/following{/other_user}","gists_url":"https://api.github.com/users/APD183/gists{/gist_id}","starred_url":"https://api.github.com/users/APD183/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/APD183/subscriptions","organizations_url":"https://api.github.com/users/APD183/orgs","repos_url":"https://api.github.com/users/APD183/repos","events_url":"https://api.github.com/users/APD183/events{/privacy}","received_events_url":"https://api.github.com/users/APD183/received_events","type":"User","site_admin":false},"created_at":"2016-08-12T23:05:37Z","updated_at":"2016-08-12T23:05:37Z","body":"I am not where I can test this right now, but if you replace this function on line 51 of RetrieveFMXML.class.php does it work?\r\n\r\n\tfunction utf8HTMLEntities($matches) {\r\n\t\t// $matches contains full match as first item so everything is +1\r\n\t\tif(count($matches) == 3){\r\n\t\t\treturn $this->FX->BuildExtendedChar($matches[1],$matches[2]);\r\n\t\t}elseif(count($matches) == 4){\r\n\t\t\treturn $this->FX->BuildExtendedChar($matches[1],$matches[2],$matches[3]);\r\n\t\t}elseif(count($matches) == 5){\r\n\t\t\treturn $this->FX->BuildExtendedChar($matches[1],$matches[2],$matches[3],$matches[4]);\r\n\t\t}\r\n\t}"}}
{"actor":{"display_login":"APD183"}}