Announcement

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

#1 Re: User Discussion & Help » Apostrophes » 2007-05-21 11:15:39

That worked great Ray!
Thanks alot!

#2 Re: User Discussion & Help » one installation for more domains » 2007-05-20 14:06:37

I use a virtual folder in IIS to server about 50 sites from the one folder. I am sure there is a similar way to make a vitual folder in Apache.
Yup! It's called an alias: http://httpd.apache.org/docs/2.0/mod/mo … html#alias

#3 Re: User Discussion & Help » Apostrophes » 2007-05-20 13:59:18

I know it's been awhile, but I found the answer to this. Basically Access and MySQL default to Latin 1 code page and that doesn't include the smart quotes from Word. If you make the tables default to UTF8 then you should be all set. This article helped me alot: http://www.joelonsoftware.com/articles/Unicode.html

#4 Re: User Discussion & Help » Change default display font » 2006-04-02 12:59:39

Just put it in the section that determines the default configuration in my_config.js like so :

       xinha_config = xinha_config ? xinha_config() : new HTMLArea.Config();
       xinha_config.pageStyle = 'body { font-family: arial,sans-serif; font-size: .9em; }';
       xinha_config.width  = '100%';
       xinha_config.height = '420px';
       xinha_config.statusBar = false;


I used em so the font will resize if the user uses a different text size.

#5 Re: User Discussion & Help » xinha shared, please advice... » 2006-04-02 12:40:48

I do exactly what you need. I am using IIS, but I assume you can make virtual directories in Apache as well.
Under the Control Panel directory (/Private) in each users domain I created a virtual directory called xinha that points to the single directory xinha under InetPub. In IIS under that domain you right-click on Private, and select New then Virtual Directory
Then use the normal configuration like the newbie guide says and put the following in the head of all the pages where you want to use xinha:
    <script type="text/javascript">
    _editor_url  = "xinha/";
    _editor_lang = "en";
    _editor_skin = "blue-look";
    </script>
    <script type="text/javascript" src="xinha/htmlarea.js"></script>
    <script type="text/javascript" src="xinha/my_config.js"></script>

It works because now there is a virtual directory under Private. Also, in the configuration in the head you can customise for each domain, even though you are using all the same files.

You do not have to do any configuring for the path at all in the xinha directory this way either.

#6 Re: User Discussion & Help » Apostrophes » 2005-11-16 10:27:29

Thanks for the info!
The problem is users in my content management system copy and paste from all sorts of things, including Word, WordPerfect, web sites, etc. and I have no control over them putting in non-standard characters.

If I had a way to identify the bad characters I could replace them with the proper quote characters before insertion into the database. I have done this before with characters that didn't sit well in a text field.
I am pretty sure they are some sort of Microsoft thing because I have the same problem on a Town website here that they copy/paste out of Word all the time.

The various "cleaning" functions in Xinha don't clean that up either, and I really wouldn't expect it to.

#7 Re: User Discussion & Help » Apostrophes » 2005-11-15 10:53:17

I tried that, and ISO-8859-1 (like this site) and ISO-8859-15 to the same end.
Here's something interesting. If I change it to ISO-8859-1, then post directly to another page it is fine (it wasn't before). But, if it goes into the database it isn't. I turned off Unicode Compression for that field also.
So, I guess now it must be a database problem with Access.

#8 Re: User Discussion & Help » Apostrophes » 2005-11-12 17:42:10

Sorry for the delay! Got busy there for awhile!
I added <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> to the header in the control panel and it is stll the same. I also made sure it wasn't the Access database by posting directly to the next page.
I also tried changing the character set to <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> like the original site that shows them properly, and that had the same effect.
Could those characters be from a different character set?

#9 Re: User Discussion & Help » Apostrophes » 2005-10-22 12:04:16

Ok, maybe I should rephrase this. What are those characters (ASCII wise?) so I can replace them with the proper ones before putting the text in the database?

#10 User Discussion & Help » Apostrophes » 2005-10-15 13:13:39

tteddo
Replies: 10

I have a strange problem with apostrophes in text that has been through Xinha. If you check the original page here:
http://www.potbellyjunction.com/html/stoves_pellet.html you see the apostrophies for "it's" and "doesn’t" appear normal in the first paragraph.
The new page on the new site, after copying and pasting just like by client is going to, appears here:
http://www.potbellyjunction.com/PelletStoves.cfm. See how there is an invalid character instead of the apostrophes? It shows like a box in Internet Exploder, nothing in Firefox-Windows, and as an invalid character in Firefox for Linux.
The database (Access 2000) field it is going into is set for Memo, so that leaves it untouched, and if I paste the text into Notepad and manually change them to " ' " ahead of time it is fine.
Thanks for your help!

Board footer

Powered by FluxBB