HTTPService + SimpleEmailForm - Problem with character

Problem with swedish character å, ä och ö in a
simple form mail with flex, php and mySQL.
Have tried to change this in flex - mySimpleFormMail.mxml:
<?xml version="1.0" encoding="utf-8"?> to
<?xml version="1.0" encoding="Latin1"?> and to
<?xml version="1.0" encoding="iso-8859-1"?>
Have also at the same time changed this in mail.php:
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" /> to
<meta http-equiv="Content-Type" content="text/html;
charset=Latin1" /> and to
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
The mySimpleFormail looks like this is this:
From---------------------------------------
Name----------------------------------------
To------------------------------------------
E-mail---------------------------------------
Mesage---------------------------------------
SEND (button)
The e-mail generated from mySimpleFormail looks like this:
From: Patrik Hällman
Email Address: [email protected]
To:
Patrik Hällman
Email Address: [email protected]
Message:Now I´m testing with the swedish character -
åä och ö.
...as you can see swedish character å, ä och ö
is wrong displayed.
Here is the result from <traceTarget>:
[SWF] C:\AppServ\www\email \bin-debug\email_send4.swf - 910
229 bytes after decompression
'AB8F6784-15FC-7BD4-D26D-F73192A7717F' producer set
destination to 'DefaultHTTP'.
'direct_http_channel' channel endpoint set to http:
'AB8F6784-15FC-7BD4-D26D-F73192A7717F' producer sending
message 'AA84F829-98F0-E93F-D7AC-F732847CF6B2'
'direct_http_channel' channel sending message:
(mx.messaging.messages::HTTPRequestMessage)#0
body = (Object)#1
emailMessage = "Now I´m testing with the swedish
character å, ä and ö."
senderEmail = "[email protected]"
senderName = "Patrik Hällman"
sendToEmail = "[email protected]"
sendToName = "Patrik Hällman"
clientId = (null)
contentType = "application/x-www-form-urlencoded"
destination = "DefaultHTTP"
headers = (Object)#2
httpHeaders = (Object)#3
messageId = "AA84F829-98F0-E93F-D7AC-F732847CF6B2"
method = "POST"
recordHeaders = false
timestamp = 0
timeToLive = 0
url = "
http://www.myhomesite.se/email/email.php"
'AB8F6784-15FC-7BD4-D26D-F73192A7717F' producer connected.
'AB8F6784-15FC-7BD4-D26D-F73192A7717F' producer acknowledge
of 'AA84F829-98F0-E93F-D7AC-F732847CF6B2'.
Decoding HTTPService response
Processing HTTPService response message:
(mx.messaging.messages::AcknowledgeMessage)#0
body = "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
</body>
</html>
clientId = "DirectHTTPChannel0"
correlationId = "AA84F829-98F0-E93F-D7AC-F732847CF6B2"
destination = ""
headers = (Object)#1
messageId = "5624FC90-E89E-2B47-92B9-F7328A8CB993"
timestamp = 0
timeToLive = 0
This is catastrophic when you working with cms and databases.
All help I can get from this forum is really appreciated.

Well, using UNICODE for upload/download files I think is most suitable way. If in AL11 you don't see it being displayed correctly (odd characters appear), that doesn't necessary mean it has wrong encoding set. Maybe AL11 is using different decoding type by default. Normally storage of file on AS is not its final destination, right? You place it there i.e. for customer's job to read it back and send via email. So just make sure that downloading program uses same decoding you used for encoding (UTF-8). Then the characters in the output stream (i.e. frontend file, mail body) should be displayed correctly
What I mean is don't worry how it is dispalyed in AL11, just ensure that after you download it, the characters are correctly decoded.
PS: Make sure that you metion encoding type explicitly both for upload and download programs
OPEN DATASET dset .... IN TEXT MODE ENCODING/DECODING UTF-8.
Regards
Marcin

Similar Messages

  • Problem with character code NCR (example : cộng h�a x� hội)

    Dear
    I have problem with character code NCR when display this string "c&#7897;ng h�a x� h&#7897;i" on web page using JSF. I print out like this c & # 7897 ; ng h � a x � h & # 7897 ; i
    Thanks for help

    jverd wrote:
    A better approach would be to take a char rather than a String in that method, since it's a better model for what you're converting. A char would also let you use switch statement.I was going to say this as well but you beat me to it.
    @OP, you really should use char for this. You're unnecessarily taking each char, converting it to a string, and working with the single-character string. That's not very efficient.

  • Problem with '&' character in xml

    Hello!
    i work with XI3.0 sp19
    i have a interface ftp ->XI-> idoc.
    ftp adapter send a xml file.
    I solve all problems with special characters using encoding="ISO-8859-9", but i have problem when in my message there are a '&' character.
    any idea?????

    This has been discussed lately:
    Ampersand ('&')  in  XML - Mapping error
    Regards
    Stefan

  • Having a problem with character styles in indesign

    I'm having another problem with my style sheets in indesign, I've now got an awful lot of styles in paragraph and character styles. I've created different styles for paragraph justified text and when I go to my style in paragraph styles to use tight text copy, character styles always overides it so it means I have to do  whole lot of extra formatting just to put it right. Does anyone have an idea how I can stop character styles overiding paragraph styles? Thanks very much.

    Perhaps your character styles apply more than you actually want? I.e., rather than just "+Italic" it also applies custom tracking. You should use character styles only to override the stuff you really want to change.
    You can check by calling up the definition for those character styles; the huge "Style Settings" text box lists all the attributes it changes.

  • Problem with character set - Reports 11.1.1.4

    Hi!
    I have a problem with Oracle Reports 11g regarding character set configuration. The default character set WE8ISO8859P1 works, so PDF reports have a regular display except for Eastern European (EE) letters which are replaced by "¿" sign.
    So, when I set any other character set in reports.sh, which would be a normal step to get EE letters, I'm always getting Greek Alphabet in PDF reports. Why Greek Alphabet?
    The character sets I tried to use are: EE8ISO8859P2, UTF8 and AL32UTF8.
    I changed uifont.ali and included PDF Subset with all four Arial font variants and, of course, I placed all fonts in fonts folder which is pointed by REPORTS_FONT_DIRECTORY.
    In Reports Builder everything works fine, but when I have to deploy the report to the Reports Services, the problem occurs.
    Also, when I've tried to execute PDF report using In-Process Reports Server (rep_wls_reports_hostnameasinst1) instead of AS Instance Reports Server (RptSvr_hostnameasinst1, which is a regular server), I'm getting Greek Alphabet in PDF reports even if the default character set is WE8ISO8859P1 in reports.sh. What is wrong with it? Where is Greek Alphabet configured?
    The production environment is 64-bit Oracle Linux 5.6 with Weblogic 10.3.4 and Forms&Reports 11.1.1.4. Forms works fine with character set EE8ISO8859P2 defined in default.env file.
    Thanks in advance!
    Regards,
    Dejan

    Thank you, Denis!
    Doc 300416.1 was very useful but Note 356221.1 - A Practical Methodology on Porting Reports from Windows to Unix with Different Font is actually crucial for configuring Reports on Linux.
    Also, there is a bug in 11.1.1.3 and 11.1.1.4, which can be fixed using the patch ( Note 1138405.1 - PDF Reports With Font Subsetting Raises Error "Bad /Bbox" on 64-Bit Linux ).
    Kind regards!

  • Problem with character set UTF-16 LE

    Hello.
    There were difficulties with character set change, using function convert ()
    The matter is that in the list v$nls_valid_values the character set AL16UTF16LE does not appear, during too time the inquiry is successfully carried out
    convert ([some-national-characters], ' CL8MSWIN1251 ', ' AL16UTF16LE ').
    But at giving on an input of the data stored in CLOB, there is an error "a character set is not supported"
    What are possible ways of the decision of a problem?

    You can try to use DBMS_LOB. SUBSTR to access LOB data like in the following example:
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    SQL>
    SQL> declare
      2  v_i clob;
      3  v_o clob;
      4  begin
      5  v_i := 'a';
      6  v_o:=convert(dbms_lob.substr(v_i,1,1),'AL16UTF16LE', 'CL8MSWIN1251');
      7  end;
      8  /
    PL/SQL procedure successfully completed.

  • Problem with Character set

    Hi,
    I am facing some problems with Oracle character sets.
    I have set the database character set as UTF8.
    I have set the environment variable NLS_CHAR to Portuguese_Portugal.UTF8.
    I insert a Portuguese text for varchar and clob columns in a table.
    However when I select the text from that table, I get some junk values for the clob.
    Any help is appriciated. Thanx in advance.
    Yash
    null

    Hi Yash,
    Can u tell me how to insert values in a nchar/nvarchar column in
    Indian language scripts?
    I have set database characterset to 'IN8ISCII'? But while
    inserting values in the table I am getting error as characterset
    mismatch'
    I have tried it using UTF8 chracterset also??
    As fa as your problem is concerened, I think u have to set the
    nls_ characterset value$ in props$ table
    and same for nls_nchar_characterset column also..
    Thanks in advance
    Manoj mehta

  • ISQL problem with character

    I use iSQL
    I used database with character AR8MSWIN1256 its correctly
    but I use database with character AR8ISO8859P6 the data it not correct
    thanks

    Well, using UNICODE for upload/download files I think is most suitable way. If in AL11 you don't see it being displayed correctly (odd characters appear), that doesn't necessary mean it has wrong encoding set. Maybe AL11 is using different decoding type by default. Normally storage of file on AS is not its final destination, right? You place it there i.e. for customer's job to read it back and send via email. So just make sure that downloading program uses same decoding you used for encoding (UTF-8). Then the characters in the output stream (i.e. frontend file, mail body) should be displayed correctly
    What I mean is don't worry how it is dispalyed in AL11, just ensure that after you download it, the characters are correctly decoded.
    PS: Make sure that you metion encoding type explicitly both for upload and download programs
    OPEN DATASET dset .... IN TEXT MODE ENCODING/DECODING UTF-8.
    Regards
    Marcin

  • Problem with Character Set in Oracle database 10g

    Hi,
    I tried to import one tablespace into test server. Source server with Oracle 8i and Target server with Oracle database 10g. The error I get is
    Import: Release 10.2.0.1.0 - Production on Thu Aug 3 00:20:49 2006
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Username: sys as sysdba
    Password:
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Export file created by EXPORT:V08.01.07 via conventional path
    About to import transportable tablespace(s) metadata...
    import done in WE8DEC character set and AL16UTF16 NCHAR character set
    export server uses WE8DEC NCHAR character set (possible ncharset conversion)
    . importing SYS's objects into SYS
    . importing SYS's objects into SYS
    IMP-00017: following statement failed with ORACLE error 19736:
    "BEGIN sys.dbms_plugts.beginImport ('8.1.7.4.0',2,'2',NULL,'NULL',67051,25"
    "51,2); END;"
    IMP-00003: ORACLE error 19736 encountered
    ORA-19736: can not plug a tablespace into a database using a different national character set
    ORA-06512: at "SYS.DBMS_PLUGTS", line 2386
    ORA-06512: at "SYS.DBMS_PLUGTS", line 1946
    ORA-06512: at line 1
    IMP-00000: Import terminated unsuccessfully
    PLZ somebody help in geting resolve this. Has anybody seen this error before.

    The solution to this problem is described in MetaLink note #211920.1. But this note is published with LIMITED access as it involves using a hidden parameter.
    You can get access to the note through Oracle Support only.
    The problem itself is solved generically, if the source database is at least 10.1.0.3 and the target database is 10.2
    -- Sergiusz

  • Problem with Character Set after upgrade

    Hello,
    I have a probelm and was wondering if anyone has seen this before.
    I have been running Java 1.4.2_13 for a while now on some Windows servers. About a month ago we upgraded to Java 1.6.0_12.
    We are reading input files that are in the character set Big5 HKSCS. After the upgrade our application started to report certain characters as invalid. Some of the characters are 0xD843, 0xD844.
    These should be valid characters and were in the previous version of Java (1.4.2_13).
    Has anyone seen this?
    Thanks in advance,
    Jerry

    The [Supported Encodings|http://java.sun.com/javase/6/docs/technotes/guides/intl/encoding.doc.html] page for the Java 6 release describes that charset as
    Big5 with Hong Kong extensions, Traditional Chinese (incorporating 2001 revision)You would know more than I do about that 2001 revision (or at least, not less than I do, since I know nothing about it). Perhaps that's the source of your problem?
    Edit: especially since the [Supported Encodings|http://www.j2ee.me/j2se/1.4.2/docs/guide/intl/encoding.doc.html] page for Java 1.4 doesn't mention the 2001 revision.

  • Problems with character displaying from XML to Java

    Hi to all!
    I am making a flash chat program which basically takes english and chinese
    and talk to java using XML and java server distribute this message to all users,
    While simply using java as a distributor of the data was fine, but when I try to
    keep records of the chat into the mysql database, I realized that all the
    chinese characters are displayed in random characters.
    After some thought, I realized that flash using ASCII number representation
    for each chinese word imay be different from the Java ASCII number representation, therefore, when Java sends
    these ASCII characters to the mysql database, the words is no longer the words I wanted.
    I am using a brute force, which on the flash side, I took the ASCII code of each chinese character that I
    typed and use break and send them to java and recoded in java with java's Chinese character
    and send to the mysql database, well, it works(I tried) but I need to type up at least 3000 characters!!!!!!!!
    this is insane!
    I am also wonder if the problem comes because Java encode Chinese in unicode, so
    it does not recognize the ASCII, and therefore, the result is for sure weird.
    If so, what do I need to do in order to convert ASCII into Unicode????
    sincerely,
    Suansworks

    hello.
    flash have some problems by utf but it seems that your problem is with mysql database because if you want to put utf in mysqk database you need to get latest version that is beta or alpha. please it using with other database that supports utf.

  • Problem with character set (ubuntu linux)

    hello everyone.
    I 'have already installed oracle-xe-universal_10.2.0.1-1.1_i386 in ubuntu.
    The problem is that greek characters from the db appear like ??????.
    How can i set the right nls_lang character set to solve the problem in ubuntu linux?
    Thank you in advance!

    Character code point translation is in the realm of the client, try setting NLS_LANG environment variable.
    If your client programs handle UTF8, as do many linux utilities, that is the best choice, set your <language>_<locale>.<characterset>, i.e.
    export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
    Or french_france, or german_germany ... depends on the locale you want to use. Try a `putty` session to the host, the terminal can be set for many different character sets, i.e. ISO8859-<n> a.k.a. the WE8<n> or Western European, UTF, etc. under Window/Translation.
    Try a few select ... from dual; statements in sqlplus with a literal, and different unicode values- the unistr() and dump() functions can come in quite handy.
    select unistr('\ac20 euro' ) from dual;
    ... € euro ...
    select dump( unistr('\ac20 euro' ) ) from dual;
    ... <ascii codes for the character values> ...
    select dump( unistr('\ac20 euro' ),16 ) from dual; -- this one for hex dump

  • Problem with character field

    hi experts,
    i have two character fields with legth 18 each..values are 123 and 126.
    i have to display in smartfrom as 123 to 126.
    bcoz of 18 characters leght i am facing some place adjutment problem in smartfrom
    so it is displaying as
    '   somespace             123to
        126.
    can any body plz help me how to acheive this?
    Edited by: s veena on Jan 31, 2011 12:17 PM

    gv_sernr = 123 to 126 ( it should be one line).
    but it is coming like
    somespace 123to
    126.
    >
    Abhinab Mishra wrote:
    > I think you should search the forum or google about concatenation.
    > Or do F1 on CONCATENATE.
    I'm not sure how CONCATENATE will serve here,but CONDENCE might do.
    @ S veena: Can you please check the space on the window if this is sufficient to accommodate the whole value in one line.
    Cheers,
    Amit

  • Problem with Character spacing with RTF

    I currently have this problem:
    We have a RTF template, displaying a kind of sticker for our company including several lines of text (Company name, Service, Address, email, tel/fax, Internet website)
    To mimic a justification, our users, who prepared the template, for each line of text in the sticker , formatted the text including character spacing (extended spacing of 3.1 pt, scale 100%,in Font Times size 10; extended spacing of 6.8 pt, scale 100%,in Font Times size 8; ...)
    We save the template, reopen it for testing purposes: all is correct, nothing has been lost.
    But when testing from BI Publish tool, using the RTF view for the template, or when testing in real conditions (fusion with Data, output format being RTF), all these formattings (characters psacing) have been lost.
    Any idea?
    Thanks

    Hi Laurent
    Can you post the template and data to the TAR.
    Im double checking but I do not believe we currently support the character spacing you are setting through the font dialog.
    tim

  • Applescript problems with character offsets and embedded objects in Pages

    https://discussions.apple.com/thread/2550810?start=0&tstart=0
    The above discussion is archived, but I've noticed a problem witht he solution it proposes.
    Essentially, the problem seems to be that the character offset of a selection becomes either inaccessible or out of sync when embedded objects are present in the file.
    The following document can be used to demonstrate:
    http://images.apple.com/support/pages/docs/ePub_Best_Practices_EN.zip
    I've slightly modified the script fromt he previous thread, so here's my own script:
    tell front document of application "Pages"
              set C to character offset of (get selection)
              set N to 0
              repeat with P in (get character offset of paragraphs)
                        if P > C then exit repeat
                        set N to N + 1
      select paragraph (N + 1)
              end repeat
              N
    end tell
    This script is supposed to select the next paragraph in a document, when given a selection. The intention is to call it recursively to get each paragraph of the document in turn.
    At the start of the document, it functions correctly, however when it gets to the embedded pictures, lines and table of contents, things start to break. This wouldn't be so bad, because I could simply ignore paragraphs that contains those embedded objects, but the real problems arise in the normal text below these objects.
    If you place the cursor on the 3rd page of that document, in an ordinary paragraph, for example, this script will simply return the same paragraph over and over. The reason for this is that the character offset of the paragraphs is being thrown off, so the if statement gets hit too early. You can also see this if you look at the character offsets of the word "Introduction" in the heading at the top of the 3rd page. You'll notice that the character offset is duplicated for a couple of letters, and is out of sync with the index of the character itself.
    What I need is a script that will take a selection (of any type), and simply return the correct index of the paragraph containing it every time. It doesn't seem like a difficult thing to do, and since the paragraphs are accessible by index, they should be able to return their index to the user. I have a feeling Apple need to add this functionality to the Pages Applescript dictionary, and they definitely need to fix the bug where the character offsets go out of sync after embedded objects. These are really quite bad problems.

    Hi,
    Pierre L. wrote:
    I have tested it with the document referred to by andyboyd. When the first word (“Introduction”) of the first paragraph of page 3 is selected, your script returns {10}, while it returns {12} when the second word (“to”) of the same paragraph is selected.
    Message was edited by: Pierre L.
    Thanks Pierre.
    Ok, the error is that I mixed the variable N and N1, during the renaming of variables
    return N - 1  must be return N1 - 1 -- return the index
    Here the corrected script :
    set indexList to my getIndexOfLinesInSelection()
    on getIndexOfLinesInSelection()
       script o
          property parOffsetList : {}
          on getIndex(C)
             tell application "Pages" to tell front document
                set parOffsetList to character offset of paragraphs
                set tc to count parOffsetList
                repeat with N from 1 to tc
                   if N = tc then return tc -- it's the last paragraph
                   if (item N of parOffsetList) > C then
                      set N1 to N
                      repeat -- check the  character offset of the selected line
                         if N1 = tc then return tc -- it's the last paragraph
                         select paragraph N1 -- select next paragraph
                         set sel to (get selection)
                         if class of sel is list then
                            repeat with aItem in sel --  this line contains text and object
                               try
                                  if character offset of first character of aItem > C then return N1 - 1 -- return the index
                                  exit repeat -- else  character offset of the selection <= C , exit the repeat
                               end try -- error,aItem is not valid, continue the repeat
                            end repeat
                         else
                            try
                               if (character offset of first character of sel) > C then return N1 - 1 -- return the index
                            end try
                         end if
                         set N1 to N1 + 1
                      end repeat
                   end if
                end repeat
             end tell
          end getIndex
       end script
       tell application "Pages" to tell front document
          set sel to (get selection)
          if class of sel is list then -- selection contains object or  (Non-Continuous selection in the same line or in  différents lines).
             set charOffsetList to {}
             repeat with aItem in sel
                try
                   set end of charOffsetList to (character offset of aItem) -- get character offset of  the  valid item
                end try
             end repeat
          else -- insertion point or  the first line in continous text selection
             set charOffsetList to {character offset of sel}
          end if
          if charOffsetList is {} then return {} --  no valid item in the selection
          set indexList to {}
          repeat with C in charOffsetList
             set r to o's getIndex(C)
             if r is not in indexList then set end of indexList to r
          end repeat
          return indexList
       end tell
    end getIndexOfLinesInSelection

Maybe you are looking for

  • I can't turn windows program compatibility off

    I enabled "turn off application compatibility engine" and "turn off program compatibility assistant" in computer configuration (through group policy edit) and also "turn off program compatibility assistant" in user configuration, and still when I try

  • What's the point of an off-page bus connector?

    I notice busses named the same connecto together through the design, even without using off-page bus connectors. Is there any reason to even use the connectors since they add to the cluster of my designs? Thanks.

  • Czech keyboard layouts

    Is any way get czech keyboard layout for Wireless keyboard in Nokia E51 ? In E51 is Wireless BT keyboard application, but it is from 2006 year and it has not czech layout. I am tried install new sw for nokia BT keyboard from pages (2008), but is impo

  • Connect an iPod to an external drive?

    Apple's biggest iPod still isn't big enough to house my entire media collection.  I figure I need about 1.5 TB.  Can an iPod Classic be connected to an external hard drive without a computer involved?  ie, just the iPod wired to a drive?

  • More than one ipod - help

    Can more than one ipod device be managed from a single computer? More importantly, can separate music libraries be used? I want to keep my music separate from my child's music, for a number of reasons. Thank you all in advance for your help.