Forums / Developer / SJSD WYSIWYG editor based on FCKEditor for ezxmltext

SJSD WYSIWYG editor based on FCKEditor for ezxmltext

Author Message

Dariusz Wlodarczyk

Thursday 20 April 2006 12:42:38 pm

Ok but I think the mutch better way (an only good solution for all cases) is to SJSD detect what codepage is used and write proper value of encoding in xmltext field header...

Of course it is possible to change encoding in my site configuration, but other things connected with this change are dificult. My database have now ca. 300MB, must work all time without any pause and I have access to it only using phpMyAdmin (with 4MB limit of uploaded file size) :(

So please... if it's possible change your handler to work like simplexmlhandler with characters encoding :)

liu spider

Thursday 20 April 2006 12:58:42 pm

to Dariusz Wlodarczyk:

so what simplexmlhandler saves into your database? Does it convert polish encoding into utf-8?

http://liucougar.scim-im.org
SCIM Input Method Platform
http://scim.sf.net
SJSD Online Editor
http://sf.net/projects/sjsd

Dariusz Wlodarczyk

Thursday 20 April 2006 3:27:05 pm

The content of database fields (ezxmltext, ezauthor, maybe some others) say to me YES ;) other fields (like eztext) are encoded to iso-8859-2

I have only iso-8859-2 in my siteaccess settings, but some content are rencoded to UTF-8 as you can see here:

http://img208.imageshack.us/my.php?image=mysql7cq.jpg

On this screenshot you may see only ezauthor fields but the same is for ezxmltext.

Siniša Šehović

Thursday 20 April 2006 11:57:18 pm

Hi Iiu

I have same problem with rev57!?

<?xml version="1.0" encoding="UTF-8"?>
<section xmlns:image="http://ez.no/namespaces/ezpublish3/image/"
         xmlns:xhtml="http://ez.no/namespaces/ezpublish3/xhtml/"
         xmlns:custom="http://ez.no/namespaces/ezpublish3/custom/">
  <paragraph>S.</paragraph>
  <paragraph>S.</paragraph>
  <paragraph>S.</paragraph>
</section>

All texts inside tag paragraph are owerwriten with last paragraph text.

S.

---
If at first you don't succeed, look in the trash for the instructions.

Kristof Coomans

Friday 21 April 2006 3:48:26 am

Hi Liu

If you want I can help you with fixing the issues with PHP 4.4 as described by Sinisa.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

liu spider

Friday 21 April 2006 6:37:33 am

to Kristof Coomans:
Yes, please. I do not have a php 4.4 development environment so it is hard for me to fix.

Please use svn, so that you can easily generate the patch :)

thanks for your offer

http://liucougar.scim-im.org
SCIM Input Method Platform
http://scim.sf.net
SJSD Online Editor
http://sf.net/projects/sjsd

liu spider

Friday 21 April 2006 6:59:01 am

to Dariusz Wlodarczyk:
hehe, you see, ezauthor just write utf-8 as the encoding, but I doubt it really converts the input into UTF-8

if that's the case for ezxmltext as well, SJSD should work fine too

http://liucougar.scim-im.org
SCIM Input Method Platform
http://scim.sf.net
SJSD Online Editor
http://sf.net/projects/sjsd

Dariusz Wlodarczyk

Friday 21 April 2006 1:33:08 pm

Belive me the content is converted to UTF-8... i check this!

liu spider

Friday 21 April 2006 2:52:25 pm

I checked that ezsimplied input handler does not convert the charset at all (AFAICT)

http://liucougar.scim-im.org
SCIM Input Method Platform
http://scim.sf.net
SJSD Online Editor
http://sf.net/projects/sjsd

Kristof Coomans

Saturday 22 April 2006 5:38:24 am

Hi Liu

I've made a patch which should fix the problem with PHP 4.4

http://sourceforge.net/tracker/index.php?func=detail&aid=1474625&group_id=164632&atid=832505

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Kristof Coomans

Saturday 22 April 2006 6:02:28 am

I'm having some troubles with headers. If I'm using them and I store or publish the draft / disable the editor, I get this error page in Firefox:

The connection was reset  

The connection to the server was reset while the page was loading.
    *   The site could be temporarily unavailable or too busy. Try again in a few
          moments.
    *   If you are unable to load any pages, check your computer's network
          connection.
    *   If your computer or network is protected by a firewall or proxy, make sure
          that Firefox is permitted to access the Web.

And I get this in the Apache error log:
[Sat Apr 22 14:48:24 2006] [notice] Parent: child process exited with status 3221225477 -- Restarting.

Does someone else experiences the same problem?

I'll google a bit to see if I can find a solution.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Kristof Coomans

Saturday 22 April 2006 6:22:43 am

I have the problem with both PHP 4.4.1 and PHP 4.4.3-dev on Apache 2.0.55.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

liu spider

Saturday 22 April 2006 6:25:15 am

to Kristof Coomans:
thanks man. Applied in svn. Those of use php 4.4/eZ 3.7, could you please test svn r58 and report whether it works?

I never experienced any php errors like the one you got. I suspect it is also related to php 4.4. When you use header, what do you get if you click the ez source button (the last one in the toolbar)

http://liucougar.scim-im.org
SCIM Input Method Platform
http://scim.sf.net
SJSD Online Editor
http://sf.net/projects/sjsd

Kristof Coomans

Saturday 22 April 2006 6:37:48 am

I get the normal source window with "undefined".

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

liu spider

Saturday 22 April 2006 6:48:48 am

uhm...

seems when you use header, your php will crash

if you have firebug installed, you can see the request and response from server. That full response may be useful, but I am not sure about that.

I suspect the problem is caused in
function convertSectionDomNode
in file ezxmltext/handlers/input/sjsdxmlinput.php

it has somewhat similar logic to what you just fixed for php 4.4

http://liucougar.scim-im.org
SCIM Input Method Platform
http://scim.sf.net
SJSD Online Editor
http://sf.net/projects/sjsd

Kristof Coomans

Saturday 22 April 2006 7:59:48 am

PHP is definitely crashing my Apache server. I'm writing a little test script for the command line so I can start looking what exactly is causing the problem.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Kristof Coomans

Saturday 22 April 2006 8:29:52 am

I found the problem and have made a patch. Will post it at sourceforge.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

liu spider

Saturday 22 April 2006 10:13:52 am

thanks for your patch, merged in svn

I wonder why others do not experience this issue

http://liucougar.scim-im.org
SCIM Input Method Platform
http://scim.sf.net
SJSD Online Editor
http://sf.net/projects/sjsd

Kristof Coomans

Sunday 23 April 2006 1:27:14 am

Maybe most of them use eZ 3.6.x with PHP 4.3.x. Or it could be a Windows-only problem too.

I'd like to fix some warnings I get with PHP 4.4 too, but maybe it's better to have a seperate branch for PHP 4.3 (eZ 3.6.x) and PHP 4.4 (eZ 3.7.x and newer) to make sure we don't break anything for PHP 4.3?

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

liu spider

Sunday 23 April 2006 6:51:15 am

will the fix to the warnings in php 4.4 make it incompatible with php 4.3?

I hope SJSD could be maintained to be compatible with both php 4.3 and 4.4, at least in short term.

if that's impossible, I think we have to create a separete branch.

BTW: do you want to join SJSD project so that you can commit to svn yourself?

Thanks

http://liucougar.scim-im.org
SCIM Input Method Platform
http://scim.sf.net
SJSD Online Editor
http://sf.net/projects/sjsd