ezpubli converts curly quotes to question marks

Author Message

willy jansen

Friday 01 October 2004 11:44:37 am

When you copy text from a MS Word document to ezpublish (e.g. to the body of an article) ezpubli converts "strange characters" such as curled quotes, dashes, the euro sign etc., to question marks.

A solution I'm using is to save the MS Word doc as a plain .txt file, open it in notepad and copy and paste from there.

Some questions:
- What is the reason for this conversion?
- Has it something to do with mysql?
- Does anybody know a fast method to copy-paste from MS Word avoid this conversion?

Gunnstein Lye

Monday 11 October 2004 5:20:52 am

What is the reason for this conversion?
MS Word uses special characters in some cases. A quote in Word is not the same character as a quote in emacs, for example. So sometimes you get such errors during copy/paste between MS programs and unix programs (and web programs, which are usually unix based).
It probably depends on the browser too. I would expect IE to convert this correctly, but I'm not sure.

willy jansen

Friday 15 October 2004 4:00:16 am

hi gunnstein

i suspected that already

does anybody know any good tricks that work around this problem?

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 19:07:43
Script start
Timing: Jan 18 2025 19:07:43
Module start 'layout'
Timing: Jan 18 2025 19:07:43
Module start 'content'
Timing: Jan 18 2025 19:07:43
Module end 'content'
Timing: Jan 18 2025 19:07:43
Script end

Main resources:

Total runtime0.7596 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0145 589.1797152.6406
Module start 'layout' 0.01450.0057 741.820339.4922
Module start 'content' 0.02020.7378 781.3125502.1797
Module end 'content' 0.75800.0016 1,283.49228.1250
Script end 0.7596  1,291.6172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.5569160.0003
Check MTime0.00140.1846160.0001
Mysql Total
Database connection0.00200.258310.0020
Mysqli_queries0.702792.5127570.0123
Looping result0.00070.0943550.0000
Template Total0.710093.520.3550
Template load0.00250.330620.0013
Template processing0.707493.134920.3537
Template load and register function0.00030.035410.0003
states
state_id_array0.00230.298410.0023
state_identifier_array0.00160.214420.0008
Override
Cache load0.00210.2718180.0001
Sytem overhead
Fetch class attribute can translate value0.00050.063520.0002
Fetch class attribute name0.00110.140740.0003
XML
Image XML parsing0.00060.083220.0003
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.00170.2183160.0001
String conversion0.00000.001540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs