Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2008-01-06 15:51:07

delia
Xinha Community Member
Registered: 2007-11-15
Posts: 25

weird problem with code editing

After all my work, I've found that if I switch to code mode and make changes, weird characters appear. It's an A with caret on the top. I can't see it in code mode but if I copy the code and paste it into Dreamweaver, I see dashes.  Anybody got any idea what might be going on?

Offline

#2 2008-01-10 19:44:14

wagz
New member
Registered: 2008-01-10
Posts: 1

Re: weird problem with code editing

I have the exact same problem,

Not sure what it is..

Could it be something with the new version?

Offline

#3 2008-01-21 11:57:29

delia
Xinha Community Member
Registered: 2007-11-15
Posts: 25

Re: weird problem with code editing

Maybe since I switched to the new version before this appeared - please someone, I'm using this with clients and need a fix desperately! 

Wagz - are you using the extended file manager?

Last edited by delia (2008-01-21 11:58:44)

Offline

#4 2008-01-21 13:26:28

Practicality
Xinha Community Member
Registered: 2007-02-15
Posts: 24

Re: weird problem with code editing

That sounds like an issue with converting between different character encodings. I can't tell you exactly which areas are changing. However, if you are working in Dreamweaver, try going to Modify->Page Properties->Title/Encoding. Then change the encoding from Western European to Unicode or Vice-versa. If this fixes the issue, you may need to tweak the settings in whichever plugin is giving you the problems to the correct encoding.

Remember that any characters you paste from windows are using the "Western European" (or Windows 1252 encoding), whereas Unix flavors will use another. I generally go for Unicode (UTF-8). Consider changing your browser headers to work with UTF-8 and the browser will do some encoding for you (automatically).

Also, in general, sorry if I sound like a jerk, but when you do an upgrade, keep a copy of the old version around so that if urgent problems like this occur you can simply downgrade quickly and get your clients back up and running. Often times a working copy is better than no copy at all.

I hope you are able to get this fixed. Character encoding issues can be difficult to diagnose, as it's hard to know what you are seeing!

Offline

#5 2008-01-21 13:50:52

delia
Xinha Community Member
Registered: 2007-11-15
Posts: 25

Re: weird problem with code editing

Thanks for answering - I definitely do save the previous version but this wasn't a simple upgrade but a reworking of an entire CMS that incorporated the new version. So I'm stuck with what I've got!  I switched coding on the editor page and everything worked fine until I switched to code view - changed a little piece of text , saved and then the problem occurred again - so in my case it has something to do with code view.

Offline

#6 2008-01-21 15:17:20

wymsy
Xinha Community Member
From: Massachusetts, USA
Registered: 2005-04-01
Posts: 44
Website

Re: weird problem with code editing

I think you are seeing this bug: http://xinha.webfactional.com/ticket/1112. Try upgrading to the latest nightly version.

Offline

#7 2008-01-21 15:50:04

delia
Xinha Community Member
Registered: 2007-11-15
Posts: 25

Re: weird problem with code editing

oh, my, thanks so much!

Offline

#8 2008-08-26 16:41:51

beanstalk
Xinha Community Member
Registered: 2007-02-06
Posts: 13

Re: weird problem with code editing

i am using the latest 0.95 version and am still seeing this.  in fact, the problem showed up while i was running xinha 0.94 just recently.  i've also had an issue with ascii character 194 showing up at the start and end of the text.  any ideas?

Offline

#9 2008-08-31 18:39:24

Geoffrey
Xinha Community Member
Registered: 2005-03-21
Posts: 10

Re: weird problem with code editing

I think this is also related to this error: http://trac.xinha.org/ticket/1224
One way to work around this might be to set up a function to search and replace the character using xinha_config.inwardHtml in your customize.js (or whatever you call it) script. For example:

xinha_config.inwardHtml = function (html) {
          html = html.replace(/\u205E/g, '');
          return html;
       }

Whether this catches it or not would depend at what point the cursor character is inserted in the html code. I haven't tested the above. It's just my guess.

Offline

Board footer

Powered by FluxBB