Dynamic text, system fonts, and special characters...

This one is boggling my mind so if someone can help, please
do
I've got a dynamic text area pulling text from a MySQL
database via AMFPHP. The text includes special characters such as
accents, umlauts, etc (multi-language site platform). Most of them
work fine, and ALL of them work fine when I'm on a Mac client.
However, if I use a Windows client machine in either Firefox or
IE6, there are a couple characters that for whatever reason just
don't seem to show up -- instead I get the [] box character.
The only characters I've found that seem to be affected like
this are European quote characters like ’ “ and
” (hex characters 146, 147, 148). I'm using the familiar
ampersand-pound-number-semicolon escape sequence for them. And like
I said, they all display fine on Mac/Firefox and Mac/Safari. Why
are all my other special characters (umlauts, accents, etc) working
fine and just these things failing? It's also worth noting that
they look fine if I dump them out to a PHP file and pull it up in a
browser...
Please, if anyone can help... I've been bashing my head
against this for the better part of the day!!

Hi,
did you take a look at the "gateway.php' ? There you can
define charsets. Maybe a western europe charset will
help you out. Since french language is using a lot more
accents and so.
This is what you can find in the gateway.php of amfphp. Just
have to set the right one ;)

Similar Messages

  • Validating text field based on the combination of alphabets and special characters

    Hi Everyone,
    I am Using Oracle Apex 4.2 Version . I want to do validation for a textbox where it should accept all alphabets,numbers and special characters (abc12#$ , zbc, 123, nd12, 23_6!, @%77).
    But it should NOT accept all special characters only.(@#$#!)
    Pelase do help if any knows this.
    Thanks in advance,
    Nikhil.

    Hi Nikhil,
    Here is one way that could work.
    CREATE TABLE t (x VARCHAR2 (30));
    INSERT ALL
    INTO t
    VALUES ('XYZ123')
    INTO t
    VALUES ('XYZ 123')
    INTO t
    VALUES ('xyz 123')
    INTO t
    VALUES ('X1Y2Z3')
    INTO t
    VALUES ('123123')
    INTO t
    VALUES ('abc12#$')
    INTO t
    VALUES ('@%77')
    INTO t
    VALUES ('!@#$')
    INTO t
    VALUES ('~%^&*()_+')
    INTO t
    VALUES ('23_6!')
    INTO t
    VALUES ('zbc')
    INTO t
    VALUES ('123*456')
    SELECT * FROM DUAL;
    SELECT x
    FROM   t
    WHERE  ( Regexp_like (x, '[[:alpha:]]') -- include alpha characters
              OR Regexp_like (x, '[[:digit:]]') -- include numbers
              OR Regexp_like (x, '[[:punct:]]') ) -- include special character
           AND ( Regexp_like (x, '^[^%]*$');
                 AND Regexp_like (x, '^[^*]*$') ) -- exlude special characters % and *
    Jeff

  • XMLParser and Special Characters

    Hi,
    I'm trying to read in an XML Document from a stream (e.g. a file) using XMLParser. The document contains german text (i.e. lots of special characters like umlauts �, �, � and others).
    If I read this stream into a text string all these special characters are perfectly handled (i.e. � looks like an �, etc.).
    However, if I import the stream into an XMLParser.Document using ImportDocument the umlauts seem to be scrambled. If the imported document is without any changes exported again to a stream (using ExportDocument) the umlauts are not displayed correctly anymore.
    Example Stream:
    <?xml version="1.0" encoding="iso-8859-1" ?>
    <UserID>M�ller</UserID>
    If this stream is imported into an XMLParser.Document and then exported again it contains
    <UserID>M��ller</UserID>
    I'm using correct XML encoding iso-8859-1 which is for western european languages and I guess it should not be a Forte locale issue since simple string handling of the stream works fine.
    Thanks for any hints,
    Daniel

    Let's start at the basics. Right now you are quite limited by your database character set as US7ASCII. You need to migrate to something that will support Latin and Greek characters at least. Maybe EL8ISO8859P7, or UTF-8. Please look at documentation Scanner Utility, available for Oracle 8.1.6 and above to make sure migration is safe before doing any import/export. The title of paper is: Database Character Set Migration, at: http://technet.oracle.com/products/oracle8i/listing.htm#nls
    UTF-8 will give you more versatility in the languages that your customer supports now or in the future. There is some performance overhead using Unicode but how much depends? I would base a large part of the Unicode decision on how likely it would be that other languages would need to be supported in the future and special character support.
    The special characters that your customer would like to support may already exist in Unicode. IF they don't or you choose another character set then your customer will need to look at the National Language Support Guide, Appendix 'B' "Customizing Locale Data"
    Are you running Greek windows? Otherwise how will you enter Greek characters? If you are using Greek windows you probably need to set your client NLS_LANG to EL8MSWIN1253.
    On your Forms questions you might want to take a look at the following :
    1. Chapter 4 of "Oracle Forms Developer and Reports Developer Release 6i: Guidelines for Building
    Applications" discusses How to design MultiLingual Applications.
    http://otn.oracle.com/docs/products/forms/doc_index.htm

  • Remove spaces and special characters from a form field

    Hi,
    I am tragically new to all of this, but am trying to create a form in Adobe Acrobat 9.  I am trying to use a Custom Format script to take inputs in a form field and automatically remove spaces and special characters (hyphens specifically).  For example, if a user inputs "RAN-99 06" I would like it to change to "RAN9906."  I found this script that will not let users input special characters
    if (!event.willCommit) {
        event.change = event.change.replace(/[\$#~%\*\*\^\-\(\)\+=\[\]\{\};\"\<\>\?\|\\\!]/g, "");
    And that's okay, but I can't figure out how to disallow spaces.  Also, the perference would be for a script to allow users to input the data as they like, but to clean it up after they leave the text field.
    Thanks in advance!

    From the description, I assume that the script is currently in the Keystroke event. In fact, that would be a most logical way to have it; simply ignore anything unwanted when entered.
    If you want to allow the user to enter anything, but "clean it up" when done, you would place your code in the Validate event. You will have to adjust your Regular Expression so that it works globally, but that's the whole difference. This will change the value.
    Note that you can also enter the code into the Format event. However, that would only change the visual representation of the value, but internally, the value would remain as entered.
    Hope this can help.
    Max Wyss.

  • Is it possible to search for strings containing spaces and special characters?

    In our RoboHelp project, there are figures with text labels such as Figure 1, Figure 3-2, etc.
    When I search for "Figure 3" I get all pages containing "Figure" and "3", even if I surround it in quotes.  Similarly, searching for "3-2" treats the '-' character as a space and searches for all pages containing '3' or '2'.
    Is there a way to search for strings containing spaces and special characters?

    In that case I think the answer is no if you are using the standard search engine. However I believe that Zoom Search does allow this type of searching. Check out this link for further information.
    http://www.grainge.org/pages/authoring/zoomsearch/zoomsearch.htm
      The RoboColum(n)
      @robocolumn
      Colum McAndrew

  • After removing system fonts and reinstalling fonts, FireFox will not start

    After removing system fonts and reinstalling fonts, FireFox will not start! When I start FireFox the "Mozilla Crash Reporter" opens as if FF just crashed??? I don't see any records in event viewer. I am using FF v3.6.3 on a Windows 7 box. I tried uninstalling 3.6.3 and installing 3.0.18 and had the same problem!
    == This happened ==
    Every time Firefox opened
    == After a uninstalled all fonts including system fonts and then reinstalling system fonts. ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB6.4; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; AskTB5.5)

    The files with submitted crash report ids are inside the ''submitted '' directory, from the directory you found the LastCrash.txt timestamp file.
    The file names will begin with '''bp-'''
    There might be more information from the crash report, but it might just tell us you are crashing the first time Firefox tries to use a font.
    One thing I suppose you could do is select only those fonts you've got in Tools -> Options -> Content -> Fonts and Colors -> Advanced and then uncheck the '''Allow pages to use their own fonts''' option.
    See http://support.mozilla.com/en-US/kb/Options+window+-+Content+panel#Fonts_Dialog
    To be honest, I can't find anything on this Netscape Font Navigator and it sounds highly dubious.

  • When you create a PostScript file you must rely on system fonts and use document fonts

    I got this error:
    "When you create a PostScript file you must rely on system fonts and use document fonts. Please go to the printer properties, "Adobe PDF Settings" page and turn OFF the option "Rely on system fonts only; do not use document fonts."
    This strikes me as bad practice. I only want to use system fonts and document fonts will muck me up.
    That being said, I could not easily find a way to fix this with Acrobat Pro XI. I opened Control Panel (Windows 8) and found the printer and mucked around in the various ways to get to change the PDF settings (there are several ways, and some of them present the choices as bold and not just regular). I found two separate switches for "Rely on system fonts only; do not use document fonts" and turned both off, BUT that did not work.
    Frustrated, I went back to FrameMaker and clicked File > Print Setup and then for the PDF printer, Printer Properties. There I found a THIRD instance of "Rely on system fonts only; do not use document fonts" that was set differently than the other two. This was the setting the error message meant. Change this one.
    Thanks for the convoluted UI, Adobe. What a pain, but there is the answer for all who follow after....

    > Windows 7 and Frame 7.2.
    This is not a supported configuration and probably does not work, due (I'm guessing) to driver API changes from XP to Win7, which would affect generating PDF and Ps output. This would affect Save-as-PDF and Print-to-Ps+Distill (unless you have a newer version of the full Acrobat product).
    As it happens, I'm going to attempt something similar: FM 7.0 on Win7 64 Pro. However, I'm going to install that old FM in "XP Mode".
    XP Mode is a 32-bit virtual machine running actual Windows XP inside Win7. It is (now maybe "was") available for Windows 7 Enterprise, Professional and Ultimate (but not Basic, Home or not-so-Premium). When XP went off support life earlier this month, Mr.Bill may have taken down the ability  to download XP Mode (or not, since some large enterprises are able to  purchase continued support for XP at some great cost). XP Mode never was supported for Win8. There are other VMs for Windows available.
    If XP Mode is still available, you also need a CPU that has hardware virtualization, which all recent 64-bit AMD processors do, but which is fused-off in many low end 64-bit Intel processors. AMD processors need a separate unobvious hot-fix patch installed before you do anything else about XP Mode.

  • When I select text, system wide, and delete it, why is the succeeding text then selected?

    When I select text, system wide, and delete it, why is the succeeding text then selected?
    This doesn't happen all the time, but it's happened enough for me to notice it and get super annoyed by it.
    Here's an example. If I have the following text:
    The quick brown fox jumps over the lazy dog.
    And I highlight quick brown and then press delete, I get: (The red shows the selected text)
    The fox jumps over the lazy dog.
    So when I then start typing, more text is removed than I want. Sometimes this effect carries over, so that the next couple words are selected once I start typing.
    It's wonderfully annoying. So I was wondering if anyone else was experiencing such issues or if anyone might have an idea on how to get rid of this problem.
    Thanks.

    Ooops. I haven't updated my sig in a while. I'm on 10.8.2 and it happens on a late 2008 Alu Macbook.

  • When I copy and paste text into Captivate 8, special characters disappear

    I'm trying to copy and paste text from a PDF into Captivate 8. When I paste, all the accent marks disappear. (for example: ê shows up as e). I've tried pasting into other applications, and the special characters paste correctly, so it's a Captivate problem. Has anyone else had this issue? Is there a quick fix?
    Thanks in advance!

    Upgrade your browser to Firefox 8 and try
    * getfirefox.com

  • Font problem - special characters sometimes displayed incorrectly

    I have a problem with the fonts installed on my computer: With some of them special characters (mainly german umlauts) get replaced by other fairly random symbols. My first guess was broken fonts, but the behaviour is completely inconsistent: In some apps they are displayed correctly, in some not, sometimes it even changes within one app:
    Screenshot, wrong symbols marked red, correct symbols marked green.
    Note that Exaile consistently displays them wrongly, while Pidgin does alright in the buddy list but screws up in the conversation window [edit: See below] and Audacious behaves differently even within one window! Adding to this the behaviour changes depending on the font. Most fonts are alright (so far all default fonts are, but not all installed later (manually or via pacman) are faulty), within the faulty ones it depends on the font which apps work and which don't, e.g. Bauhaus will work perfectly except that the Pidgin conversations can't display '€', Santana works for Audacious, but fails completely in Pidgin and Exaile, while Petita (the one from the screenshot) is all over the place. In some cases one font package contains different weights of the same font and those will behave completely differently.
    All kinds of text editors work fine with all kinds of fonts, so do all file managers I tested.
    Any idea as to what might be the source of this problem? How can one app interpret one ttf-file differently depending on where it uses it?
    [edit: I was mistaken: Pidgin screws up consistently in all it's windows. It's just inconsistent with other apps: In the screenshot for example 'ü' in Pidgin works, 'ä' and 'ö' don't, in Exaile all three don't. This is insane!]
    Last edited by lastchancetosee (2011-01-15 12:21:21)

    I downloaded the Petita font by Manfred Klein and checked the mapping with Fontforge.  Fontforge is reporting many, many errors with the mapping to Unicode, such as,
    The glyph named breve is mapped to U+0005.
    But its name indicates it should be mapped to U+02D8.
    Most likely, the fonts with the errors were designed for a different operating system.
    Last edited by thisoldman (2011-01-15 16:06:49)

  • A problem with regex and special characters

    Hello,
    I am using regex in my application but i have a problem with special characters. Here is the explanation of what i am doing:
    I have a certain piece of text that i want to parse and replace every occurrence of a given word with some sort of a tag which have the word found inside it.
    so that: go Going Go to gOschool by bus and to learn and to play GO Go
    and i need to replace the word "go" (case insensitive and only at word boundaries) should be:
    *<start>go<end> Going <start>Go<end> to gOschool by bus and to learn and to play <start>GO<end> <start>Go<end>*
    Consider the following code and call the method with the parameter"go?"
    The Matcher finds a weird match at the word "G?oing" with only the letter G !!!
    It also ignores the "?" in the pattern completely.
    Any clue of what is happening i would be very grateful...
    private static String replaceMatches(String strToFind)
            String resultArticle="";
            String article = " "+"go? G?oing Go? to gOschool by bus and to learn and to play GO? Go?*"+" ";
            strToFind = "\\b"+ strToFind +"\\b";
            String linkPart1= "<start>";
            String linkPart2 = "<end>";
            Pattern p = null;
            try{
                p=Pattern.compile(strToFind, Pattern.CASE_INSENSITIVE);
            Matcher m = p.matcher(article);
            String[] res = p.split(article);
            int i=0;
            //System.out.println("result of split: "+res.length );
            while(m.find())
                resultArticle+=(res[i]+" ");
                resultArticle+=linkPart1;
                resultArticle+=m.group().trim();
                resultArticle+=(linkPart2+" ");
                i++;
            if(i<res.length)
                resultArticle+=res;
    //System.out.println("result of match: " + i);
    System.out.println(article);
    //System.out.println(resultArticle.trim()+scripts);
    catch(PatternSyntaxException ex){}
    return resultArticle.trim();
    }Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    tarek.mamdouh wrote:
    because split will not work when trying to replace the first word if i don't append a space at the beginning.Split doesn't work anyway. And my question wasn't why do you add spaces (which you really don't need to do), but why do you do them with " " + "go" rather than just " go"
    replaceAll will replace all the occurrences in the text with only one word. without taking into consideration the case of the word i need to replace.No.
    >
    If i use replacaAll(article, strToFind) the output will be:
    <start>go?<end> G?oing <start>go?<end> to gOschool by bus and to learn and to play <start>go?<end> <start>go?<end>No. I showed you the actual output of an actual replaceAll.
    which is not what i want as i need to keep the case of the words i am replacingThe replaceAll I showed you does that.
    Please study the examples given and read the docs carefully rather than making claims based on inaccurate guesses.

  • Multi languages and Special Characters in PI

    Hi gurus
    Different languages data will be coming from the source xml file and PI has to handle that data and send it to ECC  system throguh IDoc Receiver Adapter.
    .our scenario is MDM to R/3. Pi file adapter is picking the xml file from source directory path.
    the file encoding we have used is "ISo-8859" file type as "TEXT", we have also tried checking by giving the file name as"Binary", but we are still facing the issue.
    The special characters which are showing up are Å#ó
    i was trying to look at the below mentoined blog , but that blog was not availiale in sdn.
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9420 [original link is broken]
    thanx in advance

    > i tiried as you suggested, but i do not have the access for the RFC destination in R/3 server.
    I mean the RFC destination in PI, not in R/3
    > i have a doubt here
    > In the xml file received by PI, the entire data will be in English, only for two particular fields the data will be in Foreign Languages(russian,greek or any other langauge).The fields are maintained under International Version Segement.
    You have to split the XML, create different IDocs by language and choose an IDoc receiver channel with tied RFC logon language 
    see SAP note 745030
    The customer should consider to use a unicode R/3 system when he wants to use different language descriptions.
    In a non-unicode system the texts from other languages cannot be read, for example the greek characters cannot be displayed when logging on in russian. In a unicode system there is no restriction.

  • File Content Conversion (receiver) and special characters

    Hi all,
    I have a scenario that has a file receiver channel with content conversion. The record structure in the flat file is field-width delimited (hence no field separator) and the parameter 'fieldLengthTooShortHandling' has the value 'Cut' because the receiving system needs only specific widths for the fields. Hence if the field value exceeds the length permitted, the extra characters are clipped.
    I observed that some characters are not handled properly while creating the text file. For example, one of the fields contained a "minus" character (not the hyphen). The flat file was created successfully. I opened the file in notepad and found that the "minus" character has appeared correctly and the column count in that record was as expected. However when the same file was opened in Textpad, the minus character was displayed as â | |  ('a' with caret, bar, bar) So, all the fields after this field were shifted ahead by 2 characters and hence the total column count of the record had gone beyond the actual one.
    All this started due to the error reported by the receiver system which processes the flat file. Due to shift of characters in the flat file, the processing failed. Moreover that system cannot process the special characters (like minus or non-Latin accented characters etc.) So although there is no issue in XI interface as such, I just want to know if anyone has more informtion on why the characters are displayed differently as mentioned above.
    Regards,
    Shankar

    Define data type like
    order_recordset
    order_row 1..unbound
    f1
    f2
    All are same except communication channel configuration,
    Message Protcol : File content select, then below you got additional parameters.
    there you fill
    Document name : Your sender message type.
    Document namespace : Give your scenario namespace
    Recordset name : order_recordset ( mentioned in the data type)
    Recordset structure : order_row, *
    Name Value
    order_recordset.fieldSeparator : 'nl'
    order_row.fieldSeparator : ,
    order_row.endSeparator : 'nl'
    based on your text file you fill the above parameter values.

  • Dynamic text don't show some characters

    hi guys,
    i'm with a problem.. i have a dynamic text in my flash and
    it's reading vars from a txt file, but it does not read some
    portuguese character as ç Ç or accents such as ã
    â Ã Â...
    i tried to embendding theses characters on my dynamic text,
    choosing embed>all and it doesn't work...i already tried to
    write them on the text box and embed>auto fill but it still
    work!!
    am i missing something?
    help me,please!

    Well the characters you mentioned should be in most regular
    fonts as well. They are hardly exotic enough to warrant a complete
    unicode font. I'm guessing the key something else. Of course it
    depends upon what font you are using. But most fonts that come with
    a computer and regular software should have those characters.
    You mention you are reading the vars from a txt file. Try
    this in the testing environment. Test publish your FLA and once the
    text file has been read go up to the debug menu and List Variables.
    Some place there should be the contents of the text file. Do the
    characters show up correctly there?
    If they don't, then the problem is that Flash isn't reading
    the text file correctly and no font will be able to fix that. Be
    sure that you are saving your text file as UTF-8. Flash doesn't
    play so well with other formats and beyond the basic ASCII range in
    text files.
    If they do show up correctly in the List Variables. Then you
    know the problem is with your fonts. As I said most fonts should
    have those characters so post back if you need more help.

  • Accents and special characters - how to manage

    Hi,
    please could you explain how it is possible to handle accents and other special characters in Business Objects XI 3.1 (Universes and Reports)? Which are the parameters/settings I need to configure for
    Database (ORACLE)
    Application Server (AIX)
    Universe
    WebI
    I want to display italian accents ò à è ù ì and some special characters like '@'. Even if they are correctly stored in DB, in WebI I retrieve characters without accent and a '?' for '@'
    Any suggest?
    Then, one more thing ...I noticed that creating a new report WebI, characters with accents appear without accents, instead if I create a report with Rich Client and I publish it, then accents are correctly displayed also opening the report with Web Intelligence. I have the application server on AIX, but Rich Client runs on WIN Server ...
    Thanks a lot
    Edited by: Tube Girl on Mar 22, 2010 4:25 PM

    Hi,
    I had almost the same problem (only different language) and manged to solve it after "google-ing" these links:
    http://www.forumtopics.com/busobj/viewtopic.php?p=658760&sid=7fd77de133ee32213d987cb1550ae568
    https://oraclespin.wordpress.com/2008/05/01/setting-nls_lang-for-oracle/
    http://docs.oracle.com/html/B13804_02/gblsupp.htm
    FYI, system is AIX 5.3 with Oracle 10g.
    I've edited .profile for boxi user and added appropriate export of NLS_LANG variable, then restarted BO and now reports are correct.
    I guess you should try adding this line to .profile of your boxi user
    export NLS_LANG=ITALIAN_ITALY.WE8MSWIN1252
    then restart and see results.
    Hope this helps,
    regards!

Maybe you are looking for