1
Aidus
Koivi and encoding?
  • 2004/10/24 15:37

  • Aidus

  • Just popping in

  • Posts: 50

  • Since: 2004/5/21


Well I use windows-1257 encoding for my xoops.
After koivi integration something is wrong with encoding.
So where and what I must change? :)

2
samuels
Re: Koivi and encoding?
  • 2004/10/24 18:29

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


I didn't test koivi with 1257 encoding. What's the problem?

3
Aidus
Re: Koivi and encoding?
  • 2004/10/24 18:39

  • Aidus

  • Just popping in

  • Posts: 50

  • Since: 2004/5/21


Problem you can see @:www.aidus.tk news are not encoded in windows-1257
And how with other encoding?
Is there a place in Koivi where to define encoding?

4
samuels
Re:Koivi and encoding?
  • 2004/10/25 10:51

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


The only change in text that koivi makes is replacing some characters by html characters like "á" by "a & a c u t e" and others.

Try disabling this function.
Open wysiwyg/class/include/js/editor.js

Look for this function:
function XK_codeCleaner(text
{        
    
//replace characters
    
text XK_replaceCharacters(text);


And replace by:
function XK_codeCleaner(text
{        
    
//replace characters
    //text = XK_replaceCharacters(text);


Tell me if this change solves your problem.

5
cucoket
Re:Koivi and encoding?
  • 2004/11/5 8:37

  • cucoket

  • Just popping in

  • Posts: 23

  • Since: 2004/7/7 5


Hi samuels,

Koivi Editor does not work for my site. I use UTF-8 encoding.

If I switch to the default encoding, i.e: ISO-8859-1, it works fine.

I have try to disable the function as you told but it doesn't help.

I am using your 1.0 Final.
Could you please help !!!!
Thanks,

6
samuels
Re:Koivi and encoding?
  • 2004/11/5 12:51

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


I'll take a look. I think the problem is in js files, because they're compressed with special characters.
Overwrite the files inside "wysiwyg/include/js"
with files inside "source" folder.

7
cucoket
Re:Koivi and encoding?
  • 2004/11/6 3:53

  • cucoket

  • Just popping in

  • Posts: 23

  • Since: 2004/7/7 5


Hi samuels,

I have overwritten the js files with those provided in the source folder in the package, but it doesn't help!!!

The errors are:
An error has occurred in the script on this page
Line
13
Char
180
Error
Syntax error
URL
http://.../modules/wysiwyg_sections/admin/index.php

An error has occurred in the script on this page
Line
166
Char
1
Error
Object expected
URL
http://.../modules/wysiwyg_sections/admin/index.php


Then the editor is still loaded, but whenever I click on any symbol like Bold, Cut, Copy ..., the "Object expected" error occurs.

If I set the xooos encoding in the languages/lang/global.php to defauld (ISO-8859-1), everything works fine.

Could you please figure out the problem. I cannot use any encoding other than UTF-8.
Thanks,

8
samuels
Re:Koivi and encoding?
  • 2004/11/7 13:12

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


While I'm solving the problems with encoding you can comment the XK_replaceCharacters function and the characters array:

function XK_codeCleaner(text
{        
    
//replace characters
    //text = XK_replaceCharacters(text);


//var htmlcharacters = ['€','‘','’','“','”','–'
//var characters = ['€','‘','’','“','”','–','—...
','¡','¢','£','£','¤','¥','¦...

9
samuels
Re:Koivi and encoding?
  • 2004/11/7 13:52

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


Ohh, I forgot.
If you can, please try this modified editor.js and overwrite your old "wysiwyg/include/js/editor.js", if it solves your problem I'll update the package.

Download here:
http://www.forjandoleyendas.com/public/fl/uploads/descargas/editor.js

10
cucoket
Re:Koivi and encoding?
  • 2004/11/10 17:53

  • cucoket

  • Just popping in

  • Posts: 23

  • Since: 2004/7/7 5


Hi samuels,

I have tried the modification and your file as well. The editor is loaded with 2 script error but I can still do some formating like B, I, Center ...

Quote:

Line: 2
Char: 1221
Error: Expected ')'
Code: 0

Line: 2
Char 1
Error: Syntax error
Code: 0


But I still cannot insert the table. For example, when I hold the mouse over in order to insert the quick table, the following error occurs:
Quote:

Line: 142
Char: 1
Error: Object expected
Code: 0


Looking for further solution!
Thanks,

Login

Who's Online

254 user(s) are online (181 user(s) are browsing Support Forums)


Members: 0


Guests: 254


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits