Characters such as apostrophes and the french quotes turn into boxes or question marks

We recently upgraded from CF5 to CF7 and encounter a problem with the previously saved text more correctly displayed. Some characters (apparently, non-ASCII characters as curly apostrophes and quotation marks) are made in the form of boxes or question marks. We have recently upgraded to Oracle 10 g to Oracle 8i, but this problem appears to be independent of the database stored in the text. Some examples of code that illustrates the problem:

< CFSET string1 = 'Department' >
< CFSET string2 = "' Hey - it" > "

< CFOUTPUT >
string1 is #string1 #.
< BR >
string2 is #string2 #.
< / CFOUTPUT >

output looks like this:

string1 is Department? s
string2 is good? He

These are rendered as boxes seen in Internet Explorer. (They appear as question marks when I copy and paste here.)

The UDF Demoronize helps to * some * of the time, but it's past still with lots of text, in particular the text that gets pasted from a Web site into a form, and then saved in a database. Does anyone have a solution for this? It is breaking my apps and incredibly annoying. I would like to either replace the problematic characters by the time they are displayed, or the replacement when they are entered into the database first place (and go back and update all previously recorded data to replace problematic characters with plain text equivalents).

Any suggestion is appreciated.

Finally, I've isolated the problematic characters so I edited the UDF (available at cflib.org) DeMoronize by adding replacements following text at the bottom:

text = Replace (text, chr (8208), "-", "ALL");
text = Replace (text, chr (8209), "-", "ALL");
text = Replace (text, chr (8210), "-", "ALL");
text = Replace (text, chr (8211), "-", "ALL");
text = Replace (text, chr (8212), "-", "ALL");
text = Replace (text, chr (8213), "-", "ALL");
text = Replace (text, chr (8214), "|", "ALL");
text = Replace (text, chr (8215), "_", "ALL");
text = Replace (text, chr (8216), "'", "ALL");
text = Replace (text, chr (8217), "'", "ALL");
text = Replace (text, chr (8218), ",", "ALL");
text = Replace (text, chr (8219), "'", "ALL");
text = Replace (text, chr (8220), "" "," ALL");
text = Replace (text, chr (8221), "" "," ALL");
text = Replace (text, chr (8222), "" "," ALL");
text = Replace (text, chr (8223), "" "," ALL");
text = Replace (text, chr (8226), "·", "ALL");
text = Replace (text, chr (8227), ">", "ALL");
text = Replace (text, chr (8228), ".", "ALL");
text = Replace (text, chr (8229), "..", "ALL");
text = Replace (text, chr (8230), "...", "ALL");
text = Replace (text, chr (8231), "·", "ALL");

Tags: ColdFusion

Similar Questions

  • How can I display the printable two than non-printable ascii characters from a device and display it in a text box?

    Hello

    My send UUT to my computer via serial port of printable and non-printable ascii characters. The question is:

    (1) how to display all characters in a text box.

    (2) how can I display all these characters in hexadecimal format and display it in a text box?

    Thank you.

    Robert

    Text boxes can actually receive channels with printable and non-printable characters: nonprinting characters will be represented with a small square. For example, consider this code:

    tank has [512], msg [512];

    Create a string with embedded unprintable characters

    sprintf (one, "Hello: %c %c %c %c % c: World!", 1, 2, 3, 4, 5);

    Pass the string to the text box "such what."

    ResetTextBox (bH [1], b1_n, a);

    Format a hexadecimal representation of the string and add it to the text box

    FMT (msg, '\n%*d[zb1r16w2p0j1]', strlen (a), a);
    SetCtrlVal (Bosnia and Herzegovina [1], b1_n, msg);

    The result is as follows: the first line is the string passed "such what", what follows is the hexadecimal representation.

  • "due to an unidentified problem, windows cannot display windows firewall settings" fixed but still can not visit some sites and the laptop now turns off the coast on me. What should I do?

    I have an Apire one laptop with Windows xp service pace 3. I had to restore it to factory about 3 years ago. Some time after that the sound system began to slow and the Synaptics mouse stop working properly. I can move the pointer, but the left click does not work. It works in safe mode but not in normal windows. I used the Acer eRecovery for correct, but it did not work. I tried to download the driver for the mouse on the internet, but some how it could stop the download. I gave up at tring to fix. Some time in late March or early April, I couldn't access internet and after 22:30. I ran the diagnosis that is provided by internet explore and he said that the HTTP and HTTPS worked but the FTP did not work. AVG later told me my firewall is disabled and there was the possibility to reactivate it and I did. After internet explore stop allowing you to enter certain sites that I wanted to enter, I ran the Diagnostics again and he told me that a firewall client has been the cause of the problem. I tried to control my firewall setting, but had that "due to a problem not identified, windows cannot display the firewall settings". I thought AVG was the problem, so I have unintalled then he returned and attempted to access the firewall but got the same message. I typed in Google MySapce and found this site. I followed a few directions given to others in the thread started by joecarpenter33 and discovered that my firewall has been deleted and Base filtering engine has been deleted also. I downloaded and ran Malwarebytes ANti-Malware and SUPERAntiSpyware Free Edition and tdsskiller. MBAM has found a Trojan. The results of the analysis is less to:

    Malwarebytes Anti-Malware (Trial) 1.75.0.1300
    www.Malwarebytes.org

    Database version: v2013.04.10.14

    Windows XP Service Pack 3 x 86 NTFS (secure/setting network Mode)
    Internet Explorer 8.0.6001.18702
    Ziadie Berry: BERRY-LAPTOP [Director]

    Protection: disabled

    10/04/2013-17:44:54
    MBAM-log-2013-04-10 (17-44-54) .txt

    Scan type: quick scan
    Analyze the options enabled: memory | Startup | Registry | File system | Heuristic or Extra | Heuristics/Shuriken | PUPPY | PUM
    Analyze the options disabled: P2P
    Objects scanned: 271656
    Time elapsed: 43 minute (s), 42 second (s)

    The process of memory detected: 0
    (No malicious items detected)

    Modules of memory detected: 0
    (No malicious items detected)

    The registry keys detected: 0
    (No malicious items detected)

    The registry values detected: 0
    (No malicious items detected)

    Registry data items detected: 0
    (No malicious items detected)

    Files detected: 0
    (No malicious items detected)

    Files detected: 1
    C:\RECYCLER\S-1-5-21-4674304-3331980883-3375822000-500\$7832f44fdd2ba165f6ea01bec7f363fd\n (Trojan.0Access)-> quarantined and deleted successfully.

    (end)

    Malwarebytes Anti-Malware (Trial) 1.75.0.1300
    www.Malwarebytes.org

    Database version: v2013.04.10.14

    Windows XP Service Pack 3 x 86 NTFS
    Internet Explorer 8.0.6001.18702
    Ziadie Berry: BERRY-LAPTOP [Director]

    Protection: enabled

    10/04/2013 23:43:49
    MBAM-log-2013-04-10 (23-43-49) .txt

    Scan type: quick scan
    Analyze the options enabled: memory | Startup | Registry | File system | Heuristic or Extra | Heuristics/Shuriken | PUPPY | PUM
    Analyze the options disabled: P2P
    Objects scanned: 269636
    Elapsed time: 49 minute (s), 41 second (s)

    The process of memory detected: 0
    (No malicious items detected)

    Modules of memory detected: 0
    (No malicious items detected)

    The registry keys detected: 0
    (No malicious items detected)

    The registry values detected: 0
    (No malicious items detected)

    Registry data items detected: 0
    (No malicious items detected)

    Files detected: 0
    (No malicious items detected)

    Files detected: 1
    C:\WINDOWS\assembly\GAC\Desktop.ini (Rootkit.0access)-> quarantined and deleted successfully.

    (end)

    I ran the Diagnostics today after Internet explore and my other browsers stop allowing me to internet access. That's what came back:

    Diagnosis of last run time: 17/04/13 17:48:14 WinSock Diagnostic
    WinSock status

    attmpting error information to validate the Winsock base providers: 2
    error not all entries could be found in the basic services provider winsock catalog. A reboot is required.
    user redirection of information in support of the appeal

    Diagnosis of network adapter
    Network location detection

    Info to help home Internet connection
    Identification of network adapter

    Info network connection: name = Local, peripheral network connection = Realtek RTL8102E Family PCI - E Fast Ethernet NIC, MediaType = LAN, type = LAN
    Info network connection: name = wireless, peripheral network connection = Atheros AR5007EG Wireless Network Adapter, MediaType = LAN, type = Wireless
    Info both Ethernet connections and wireless available, ask the user for selection
    required user input action: select network connection
    Info Wireless connection selected
    State of the network adapter

    Info network connection status: connected

    HTTP, HTTPS, FTP Diagnostic
    HTTP, HTTPS, FTP connectivity

    WARN HTTPS: error 12029 connecting to www.microsoft.com: a connection with the server could not be established
    warn HTTP: error 12029 connecting to www.microsoft.com: a connection with the server could not be established
    warn HTTP: error 12029 connecting to www.hotmail.com: a connection with the server could not be established
    WARN HTTPS: error 12029 connecting to www.passport.net: a connection with the server could not be established
    WARN FTP (passive): error 12029 connecting to FTP.Microsoft.com: a connection with the server could not be established
    WARN FTP (active): error 12029 connecting to FTP.Microsoft.com: a connection with the server could not be established
    error could not make an HTTP connection.
    error could not make an HTTPS connection.
    error could not make an FTP connection.
     
    Still, he remains connected to the wirelesss connection, but won't let me access the internet. Right now I use a proxy to help, but access to the sites are limited.

    I used the tweaking software and my firewall is back but, I have yet to visit some sites and the laptop now turns off by itself.

    Hello

    Follow these methods.

    Method 1.

    Start the computer in safe mode with network and run a full scan of computer viruses.

    To start the computer in safe mode: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/boot_failsafe.mspx?mfr=true

    Run a full scan of the computer with the Microsoft Safety Scanner to make sure that the computer is virus-free.

    Microsoft safety scanner: http://www.microsoft.com/security/scanner/en-us/default.aspx

    Warning of Security Scanner: there could be a loss of data while performing an analysis using the Microsoft safety scanner to eliminate viruses as appropriate.

    Method 2.

    If the steps above do not help, then try to scan the computer using Windows defender in offline mode and check if that helps.

    Search for spyware and other potentially unwanted software: http://windows.microsoft.com/en-US/windows7/Scan-for-spyware-and-other-potentially-unwanted-software

    What is Windows Defender Offline? : http://windows.microsoft.com/en-US/windows/what-is-windows-defender-offline

    Warning of Security Scanner: there could be a loss of data while performing an analysis using the Microsoft safety scanner to eliminate viruses as appropriate.

    Method 3.

    You can create a new user account and check. Once the new user account works fine, then copy the data from the old user account for the user account.

    How to copy data from a user profile damaged to a new profile in Windows XP: http://support.microsoft.com/kb/811151

    Let us know if you need assistance with any windows problem. We will be happy to help you.

  • Wireless adapter installs - is msg not found wireless adapter and the adapter never turns on.

    HP desktop system

    Windows Vista

    Router DLink and compatible adapter for Windows 7

    Inserted the disc and MS for installing drivers appears

    Microsoft window pops up saying: these data are incorrect.

    Install the drivers updated the site Internet DLink and still wont

    SE msg not found wireless adapter and the adapter never turns on.

    Hi JRKellison,

    1. What is the model number of the router?
    2. What is the full error message that you receive?
    3. This is the first time you install it on the computer?

    Check and make sure that the adapter is properly connected to the computer.

    I suggest that you try to install the driver using compatibility mode and check if it works.

    Make older programs in this version of Windows

    http://Windows.Microsoft.com/en-us/Windows-Vista/make-older-programs-run-in-this-version-of-Windows

  • How I changed the color of something? OK, so I use to be able to change the color of things, but now I have use color overlay, gradient overlay, or change the color when I first create the form, it turns into another shade of gray instead of chan

    How I changed the color of something? OK, so I use to be able to change the color of things, but now I have use color overlay, gradient overlay, or change the color when I first create the form, it turns into another shade of gray instead of change the color, I chose.

    Three things I can think of:

    Your document must be in RGB mode.

    Layer blending mode should be set to Normal

    Masks are grayscale. If you select the mask, you cannot apply a color.

    Always check your tab at the top to see if what you choose is RGB or grayscale.

    Gene

  • Convert the french quotes

    How can I replace the quotes that were seized in a form where the user has pasted into a document MSWord? I want to replace the smart quote with a single apostrophe. I understand that the smart quote to a single citation is represented by the following in Flex: a €™

    Thank you!

    2 issues here:

    http://www.Adobe.com/LiveDocs/Flex/201/langref/string.HTML#replace ()

    and

    http://www.Adobe.com/LiveDocs/Flex/201/langref/string.html#charCodeAt ()

    This should get you

    Dany

  • Use of the apostrophe and the reflections on the small capitals

    I received a lot of help here before that I wanted to ask a few questions more. The restaurant I work for recently put in place a small banner advertising type in the bar that says: of «of the Dini Happy Hour...» "and I was a little disappointed not to be part of the design process, so I made a good-natured jab to the owner that he should not do promos printed without my intervention. This started the conversation apostrophe among the local population at the bar, everyone agreed that the apostrophe in time was incorrect. But a person has also felt strongly that Dini should have been ' Dinis. I can't state his reason (it's happy hour) but something like that Dini became a plural possessive or? The restaurant is called "Bistro of Dini" and the owners family name is Dini.

    The second part is that I learned in a class of typography years it's poor form to do things in all capitals, (hard to read, ugly etc.) but I don't remember learning something about the use of small caps. That's what made the sign company and I found really shocking, rather it appeared quite bold to stand out and be noticed. What made me curious about the views of the use of small capitals for a type banner agreement.

    Thanks in advance,

    Patty

    1) 'a person' was wrong, and "Dini" is correct. Unless of course happy hours are hosted by Dini more than one, even if the bistro is owned by only one. The hours are the plural does not mean Dini is!

    (2) all uppercase is less readable than the mixed-case text, but is generally considered acceptable for a title or similar, as in this case, where there is only three words in question (right?). But as you've discovered, caps and small caps can be enjoyable, too.

    See you soon,.

    T

  • my computer screen goes off for a few seconds and the lights without turning off the unit. This has happened several times, regardless of the period in which stays on.

    My computer operating system Mac Pro OS X EL Capitan 10.10.3, ink 13"early 2015 screen off for a few seconds and back on without turning off the unit.

    This has happened several times, regardless of the period in which stays on.

    Don't know what is happening with your publication details.  You posted in space of the Macbook Pro forum & even your profile indicates: ' MacBook Pro (retina, 13-inch, early 2015), OS X Yosemite (10.10.3)..

    Your post indicates you are using a Mac Pro, which is a desktop computer and with the help of El Capitan who is 10.11.2 not 10.10.3 which is Yosemite - 'my computer operating system Mac Pro OS X EL Capitan 10.10.3.

  • There are six boxes to enter the serial number and the serial number on my box has 24 digits. The first six are not recognized

    I tried to enter a serial number into the regulatory policy process where we show only six boxes to enter the serial number. But the serial number on my box has 24 digits. When I walked into the top six, they were not recognized. Any suggestions on what to try next.

    Normally, you enter 4 digits in each of the 6 boxes.

    Once the 24 digit has been entered in the validation process takes place to confirm if the integer is valid.

  • Windows Essentials program running "Real-time Protection"... the mouse cursor turns into hourglass several times per second...

    I have disable real-time protection it stops on and off an hourglass toggleing... its annoying... How to stop to turn to an hourglass without disabling protection... it doesn't seem to be a problem of performance... but it is visually annoying... Please and thank you for your comments.

    I had just installed Microsoft Essentials... before uninstalling software anti-virus TrenMicro expired... maybe Detailer left some files on my system after uninstall?

    Hello

    This problem normally occurs when there are files that are infected by viruses.

    Method 1:

    Run a scan antivirus on your computer.

    www.Microsoft.com/Security/Scanner

     
    Note: If infections are detected during the scan, there is a risk of data loss because infected files will be deleted.

    Method 2:

    You also try to run the uninstaller to complete tool to remove traces of antivirus Trend.

    http://eSupport.trendmicro.com/solution/en-us/1056551.aspx

    Check the issue.

    Method 3: Clean boot

    If the problem persists, you can place the computer in a clean boot.

    Put the computer in a State of boot is a way to know which application is causing this problem.

    To help resolve the error and other messages, you can start Windows by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    Put your boot system helps determine if third-party applications or startup items are causing the problem. If so, you need to maybe contact the manufacturer of the program for updates or uninstall and reinstall the program.

    Step 1: Follow the steps in the link below to do the same thing:

    How to configure Windows XP to start in a "clean boot" State

    Note: After troubleshooting, be sure to set the computer to start as usual as shown here:

    Step 2: To configure Windows to use a Normal startup state

    After you have used the boot is a way to solve your problem, you can follow these steps to configure Windows XP to start normally.

    a. Click Start and then click Run.

    b. type msconfig and click OK. The System Configuration Utility dialog box appears.

    c. click on the general tab, click Normal Startup - load all services and device drivers and then click OK.

    d. When you are prompted, click on restart to restart the computer.

    Hope this information helps. Response with status so that we can help you.

  • The mouse pointer turns into a pointer to 'move' for no reason

    I have been using a new laptop for a few months now.  All of a sudden the mouse began to change at random from the standard windows arrow pointer, a pointer to 'move' - this is a pointer with 4 arrows pointing outward.

    The change seems to occur in any specific situation.  Sometimes the pointer turns back on its own, but usually I have to go into the control panel and accept the default settings of the mouse again to retrieve the pointer of the mouse to normal.  The change to the pointer 'move' is not in the Control Panel mouse - settings settings don't never change.

    I tried the following things:
    -change my settings of the mouse pointer to the user the dinosaur mouse pointer scheme, but the same problem occurs
    -Uninstall mouse drivers and let the PC to reinstall the driver automatically at startup

    I use a USB mouse.  When I use the laptop without the USB mouse, the problem actually gets worse.  In this case, the mouse pointer changes, and the mouse pointer freezes.  My main concern is the modification of the pointer, not the gel.

    Anyone seen this before?  In addition, no one knows how to fix this problem?

    Thank you.

    I ended up having my motherboard replaced on my laptop keyboard and Mouse touchpad.  Then only the problem was solved.

  • The cs6 InDesign dock icon is a question mark.

    My Indesign CS6 dock icon is a question mark. On my Mac HD > Applications > adobe Indesign CS6 file is a blue folder by default and is only records of Plug-ins and utilities. All other software files and CS6 shows very well to the top/open.

    This started when I tried to upgrade to El Capitan and had file error and eventually phone with Apple care for 5 days my computer get up and run again. Computer now works on OS 10.9.5

    Any suggestions? Should I reinstall the CS6 dmg with 1 single application file?

    Problem solved.

    I reinstalled the creative suite dmg file and everything works fine. Not sure if the cleaning tool was useful or not.

  • False ASCII control characters values in Variables and the call stack in CVI2013?

    Hello

    I think that there is an error in the window "Variables and stack calls" If you want to find your variables in ASCII format.

    (0-31) control characters are not displayed correctly. They are offset by 2.

    For example:

    Character in decimal format is 10 (LF), but when you're chancing to ASCII it is projection \012.

    The same with 13 (CR). This character is \015 as ASCII.

    I think that it was no problem in CVI2012.

    Best regards

    Gunther

    I do not use CVI2013 Yes so I can't answer about this specific product, but the code you are showing are the octal equivalent of the specified decimal value: it is possible that control characters (or generally the natually those non-printable) is replaced by their octal equivalent to the chain.

  • BlackBerry Smartphones Portuguese and the French, is that the same? -HELP PLEASE

    Hello

    I'm Portuguese and I have a doubt, do you know if the software in french and Portuguese phones comes back exactly? and if I buy a french that I'll be able to use it in perfectly here? The phone has been unlocked by its true owner french so I guess there is no problem, but I wanted to know if it is compatible 100%.

    Thanks in advance,

    Mario

    Yes, the devices will be used in the two countries, under certain conditions...

    • It must be unlocked to use on one medium other than that to which it is brand. You have covered.
    • You must make sure that the pin of the device is "released" account of the previous owner, that is, the previous owner removed the device from his account in France, or PIN 'can' not be able to register on another carrier. This is different from unlocking.
    • You must save the PIN code on the new Portuguese service provider and have the BlackBerry data Plan on your account.
  • The french quotes

    Hello

    How to create curved quotes in Photoshop? (Opening and closing quotes)

    Thank you!

    Large. Thank you!

Maybe you are looking for

  • How to print screen with Win 7 on Satellite L755?

    I just got this laptop and I wonder if the screenshot works? It's on the same key as the 'end' key but I don't know exactly how do so that the work is part "prtsc"... any help would be greatly appreciated! Thank you! Post edited by: Ashleylayne

  • Need drivers XP for Satellite A200-1FL

    I bought A200-1FL, but I need to install XP, because a I use software that needs XP... When can I get all the XP drivers? If I won´t get i´d xp drivers need to change laptop...Please I need answer. Thank you.

  • image correlation digital vi

    Dear expert Is algorithm of correlation (DIC) of digital image for the measurement of the deformation in Labview? If this isn't the case, someone share vi Labview for DIC? I found that several version free of DIC in the web but there is no version of

  • How to use the XY graph

    Hello I had to use a rather graphic XY XY Express chart. The XY has only one entry. How can I input x and y to it? Thank you.

  • It is best to set the resolution size and icon of the screen up

    It is best to set the maximum screen resolution before attempting to adjust the size of icons and text on the desktop, notification area, Quick Launch bar and start menu? I know that the icons can be made to the largest and by choosing a lower screen