GetColList to return fields enclosed in double quote?

hi.. newbie question.. I searched but couldnt find an answer..
I have a connection to progress tables, where the tablenames & column names contain hyphen (ie: "gla-account"."account-no")..
the getColList from LKM failed to enclosed the column names in double quotes, I tried inserting \" into the getColList codes but it kept crashing.. what's the correct syntax to add double quotes ?
thanks..
HT

hi Cezar, actually, when i tested it - it worked fine with selecting tables if column-names do not contain hyphen.
when the datastore contains column with hyphen, getColList just refused to come back at all.. so it looks like getColList cannot read from the model ?

Similar Messages

  • Can't import csv fields starting with double quotes but lack ending ones

    Hi all,
    When I'm trying to used external table to import a csv file, specified as using comma as delimiter optionally enclosed by double quotes, some records are rejected because a field in the record has starting double quotes, but without ending ones.
    Assume the customer really want these starting double quotes, how do I change my external table specification such that these starting double quotes are treated as part of the field data and can be successfully inserted into db?
    Many thanks.

    I have no access to Oracle during weekends, so nothing can be tested. So here it goes:
    Suggestion: DELIMITED BY '","' and of course omitt ENCLOSED BY '"'
    You will have to update each row of the rows just loaded setting the first_field to substr(first_field,2) and the last_field to substr(last_field,-2)
    If all the fields are not enclosed in double quotes (TRUE for strings and FALSE for numbers and dates) the situation (syntax diagrams allow two delimiters only) is somehow more complicated, anyway you can specify DELIMITED BY ',' and update all varchar2 fields in each row of the rows just loaded setting the varchar2_field to substr(varchar2_field,2,length(varchar2_field) - 2).
    Regards
    Etbin
    After posting I noticed it's difficult to distinguish between single and double quotes:
    the first DELIMITED BY should read {single quote){double quote}{comma}{double quote}{single quote)
    the ENCLOSED BY should read {single quote){double quote}{single quote)
    Message was edited by: Etbin
    user596003

  • Extracting data in .txt which is enclosed in double quote," "

    Hello everyone,
    I am trying to read data from a .txt file which look like below.
    "13.000000,393.000000 13.000000,291.000000 92.000000,284.000000 94.000000,380.000000 64.000000,385.000000 13.000000,388.000000 "The problem is every time i tried to read and save the data, i also save the double quote sign. Is there anyway to ignore the double quote sign? I am using the below coding to read and save the data in double array. Anyway will be great.
         FileReader fread=null;
             BufferedReader bread = new BufferedReader(new FileReader("test1.txt"));
                java.io.File file=new java.io.File("test1.txt");
             java.util.Scanner input=new java.util.Scanner(file);
             while(input.hasNext()){
              String arr=bread.readLine();
    String[][] str = buildArray(arr);

    veldhanas wrote:
    Hi,
    String yourString = bread.readLine();        
             String substring = yourString.substring(1,yourString.length()-1);
             System.out.println(substring);
    [See the String class |http://java.sun.com/javase/6/docs/api/java/lang/String.html]
    ThanksWatch out for those empty lines...

  • Returning fields of popup containing quotes

    Hellow,
    Ive made a report page, and I'm calling this page with
    javascript:popUp2('f?p=&APP_ID.:3037:&SESSION.::NO:3037', 1000, 1000);in a button.
    The page renders perfect, but to return values i have to make another function in javascript. Which i call, on a link in the report.
    Code in html header=
    <script language="JavaScript">
       function passBack(passVal1,passVal2,passVal3,passVal4)
    opener.document.getElementById("P3060_DEORSQN").value = passVal1;
    opener.document.getElementById("P3060_DEADSQN").value = passVal2;
    opener.document.getElementById("P3060_DECTSQN").value = passVal3;
    opener.document.getElementById("P3060_DESTREE").value = passVal4;
    opener.document.getElementById("P3060_DEFIRNM").value = document.getElementById("P3037_DEFIRNM").value;
    opener.document.getElementById("P3060_DELASNM").value = document.getElementById("P3037_DELASNM").value;
    opener.document.getElementById("P3060_DEORGNM").value = document.getElementById("P3037_DEORGNM").value;
    window.close();
       }Link in report=
    onclick="passBack(#DEORSQN#,#DEADSQN#, #DECTSQN#, '#DESTREE#')"I need to load P3037_DEFIRNM, P3037_DELASNM, P3037_DEORGNM into fields to pas them back.
    They are regular strings, but they can contain quotes = ' and it messes up the code ('#DESTREE#') to return values.
    So the link in the report should trigger something that puts the values in fields and triggers my function passBack.
    Ive been trying to put the values in the fields and triggering my function at the same time, but it only does 1 of the 2.
    Most of the time the fields contain nothing so my function returns null values.
    So if anyone knows a solution with the loading into fields, or just something to elliminate the quotes.
    I whould be very happy.
    Edited by: user9312720 on 8-apr-2010 5:52
    Edited by: Mathias axi on 8-apr-2010 23:32

    Maybe:
    onclick="passBack($v('#DEORSQN#','#DEADSQN#', '#DECTSQN#', '#DESTREE#', $v('P3037_DEFIRNM'), $v('P3037_DELASNM'), $v('P3037_DEORGNM'))"
    and
    function passBack(passVal1,passVal2,passVal3,passVal4,passVal5,passVal6,passVal7)
    opener.document.getElementById("P3060_DEORSQN").value = passVal1;
    opener.document.getElementById("P3060_DEADSQN").value = passVal2;
    opener.document.getElementById("P3060_DECTSQN").value = passVal3;
    opener.document.getElementById("P3060_DESTREE").value = passVal4;
    opener.document.getElementById("P3060_DEFIRNM").value = passVal5;
    opener.document.getElementById("P3060_DELASNM").value = passVal6;
    opener.document.getElementById("P3060_DEORGNM").value =passVal7;
    window.close();
    Edited by: user12965089 on Apr 9, 2010 7:42 AM
    Edited by: user12965089 on Apr 9, 2010 7:43 AM

  • How to enclosed the column with in double quotes while spooling to csv fie

    Dear Members,
    I have to spool a sql to a CSV file. I have two columns to spool one is vendor_id and another is vendor_name. But the 2nd column vendor_name has commas in it so if i see the o/p it looks like this:
    Suppose vendor_id = 12790 vendor_name = T T I, INCORPORATED
    when i see the csv file it looks
    12790,T T I, INCORPORATED
    I want each column be enclosed in double quotes like this
    "12790","T T I, INCORPORATED"
    How can i do this in sql*plus while spooling to a csv file.
    Thanks
    sandeep

    this?
    SQL> select '"'||'Hi'||'"'||',"'||'how'||'"' from dual;
    '"'||'HI'|
    "Hi","how"

  • SQL Loader - double quote within data

    Hi,
    I'm putting together some SQL loader scripts to load source data into a DB. The data we are receiving is comma delimited, optionally enclosed by double quotes (").
    e.g. "abc","123","this is a "test"","987"
    The problem I've got is that some data items contain double quotes ("test") as part of the data and this cause the SQL Loader to fall over with the error:
    Record 14644: Rejected - Error on table x, column y.
    no terminator found after TERMINATED and ENCLOSED field
    Is it possible to load this without changing the extraction process from the source system?
    My .ctl file looks like this:
    LOAD DATA
         INFILE '../data/toload/BR_ADDRESS.CSV'
         APPEND INTO TABLE STA_COMP_BRADD
         FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"'
         etc....
    Message was edited by:
    MaximumStagg

    Hi,
    Look in to this in Oracle documentation:
    "If two delimiter characters are encountered next to each other, a single occurrence of the delimiter character is used in the data value. For example, 'DON''T' is stored as DON'T. However, if the field consists of just two delimiter characters, its value is null."
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/ldr_field_list.htm
    Thanks,
    Kishore

  • Newline character within double quotes in csv file

    I have an external table defined as follows:
    CREATE TABLE EXT_MASTER
       (     "SOME_CODE" VARCHAR2(255 BYTE),
         "FAX_NUMBER" VARCHAR2(255 BYTE),
         "WEB_ADDRESS" VARCHAR2(255 BYTE),
       ORGANIZATION EXTERNAL
        ( TYPE ORACLE_LOADER
          DEFAULT DIRECTORY "SOME_DIR"
          ACCESS PARAMETERS
          ( RECORDS DELIMITED BY NEWLINE
              NODISCARDFILE
              LOGFILE 'master.log'
              BADFILE 'global.bad'
              SKIP 1
            FIELDS TERMINATED BY ','
              OPTIONALLY ENCLOSED BY '"'
              LRTRIM
              MISSING FIELD VALUES ARE NULL
          LOCATION
           ( 'Master.csv'
       REJECT LIMIT UNLIMITED;In my datafile I have newline characters within double quotes. This seems to be illegal using the above definition for the table.
    Is there a way to make Oracle ignore newline characters in csv files when they are enclosed in double quotes? Or should I ask my data provider to remove them?

    Here is what i got on 10.2.0.3 (don't think it might be different on 9i):
    SQL> select * from t;
    ID         TEAM_ID    TEAM_NAME
    col1       co         col3
               l2
    col11      col12      col13
    col21      col22      col23
    SQL> !cat a.txt
    "col1","co
    l2","col3"
    "col11","col12","col13"
    "col21","col22","col23"
    SQL> select * from t;
    ID         TEAM_ID    TEAM_NAME
    col1       co         col3
               l2
    col11      col12      col13
    col21      col22      col23The external table definition is:
    CREATE TABLE t(
      "ID" VARCHAR2(255 BYTE),
      "TEAM_ID" VARCHAR2(255 BYTE), 
      "TEAM_NAME" VARCHAR2(255 BYTE)
       ORGANIZATION EXTERNAL
        ( TYPE ORACLE_LOADER
          DEFAULT DIRECTORY "SOME_DIR"
          ACCESS PARAMETERS
          ( RECORDS DELIMITED BY 0x'220A'
        BADFILE 'a.bad'
        LOGFILE 'a.log'
        FIELDS TERMINATED BY ',' LDRTRIM
        MISSING FIELD VALUES ARE NULL
        REJECT ROWS WITH ALL NULL FIELDS
          ( "ID" CHAR(255)
            TERMINATED BY "," ENCLOSED BY '"',
            "TEAM_ID" CHAR(255)
            TERMINATED BY "," ENCLOSED BY '"', 
            "TEAM_NAME" (*+1) CHAR(255)
            TERMINATED BY "," 
          LOCATION
           ( 'a.txt'
       REJECT LIMIT UNLIMITED;Best regards
    Maxim

  • How to handle ' " '(double quotes) in .csv file during migration

    I am facing problem in migrating data from sql server 2000 into oracle via .csv file using sql loader.
    1>How should i migrate the string which contains ' " ' (double quotes) characters,
    as i am enclosing the string in ' " ' in .ctl file (enclosed by ' " ').
    is there any syntax in the control file which can migrate the ' " '(double quotes) as it is as the data in the files is 50000 records .?
    Thank you..

    Yes this is correct.
    but problem will occur when e.g check the foll. string.
    (1001,And I quote "This, will work")
    Here it is a comm(,) in b/w "This and will".
    due to this sqlldr interpret it as end of field. and throws an error.
    I had gone through expert one on one oracle, what it maintioned as,
    put an extra double quotes( " ) like " " to enclosed the double quoted string.
    This works fine. For small data it can be done manually.
    But for large data what condition can be put in the ctl file to achieve this?
    or is there any other way to achieve this?
    Thank you.

  • 00904 error when sorting columns that require double quotes

    We have used an ETL tool to import an XML file into Oracle 10g. The column names are mixed case and unfortunately have to remain mixed case because we have a "column" and a "Column" name with different info in them. So when we migrate it in, the field names have be enclosed in double quotes in all SQL operations. The problem in SQL Developer 1.5.1 (Win XP SP2, Oracle 10G) though is that if I try to sort on a column by double clicking the column header, we get an ORA-00904 error COLUMN does not exist. So it looks like it is trying to do an ORDER BY without putting the column name in double quotes. Has anybody else had issues with this and is there a fix for it?
    Message was edited by:
    coachy

    It's a bug.
    Logged Bug 7344539 - 00904 error when sorting columns that require double quotes
    Workaround: Use the sort button on DataTab's toolbar.
    -Raghu

  • Loading External files in Oracle - error (double quotes on columns)

    I managed to successfully load some external (Excel ) files in my Oracle database, but when I queried the table, I see that some of the columns have double quotes on them. Any idea how to remedy this problem?

    damorgan wrote:
    OPTIONALLY ENCLOSED BY double quotes in your syntax to remove them.
    http://www.morganslibrary.org/reference/externaltab.html
    Damorgan,
    Thank you!

  • Charecter strings in Double quotes

    Hi All,
    By default, all charecter strings in Oracle are enclosed within single quotes. Is there a way to make Oracle accept charecter strings enclosed in double quotes?
    Example
    Table A
    Ename varchar2(20)
    Current setup is
    INSERT INTO A VALUES('NEW_USER');
    What I need to do is
    INSERT INTO A VALUES("NEW_USER");
    Is this really possible?
    Thanks in advance
    A.P.Mageshwaran

    Why do you need to do this?
    APC

  • SSRS Report Returning Double Quote string from a Single Quote String

    Hi, I'm getting weird thing in resultset from SSRS report when executed. When I pass parameter to a report, which passes String that has single quote value to a split function , it returns rows with double quote. 
    For example  following string:
    'N gage, Wash 'n Curl,Murray's, Don't-B-Bald
    Returns: 
    ''N gage, Wash ''n Curl,Murray''s, Don''t-B-Bald
    through SSRS report.
    Here is the split function Im using in a report.
    CREATE Function [dbo].[fnSplit] (
    @List varchar(8000), 
    @Delimiter char(1)
    Returns @Temp1 Table (
    ItemId int Identity(1, 1) NOT NULL PRIMARY KEY , 
    Item varchar(8000) NULL 
    As 
    Begin 
    Declare @item varchar(4000), 
    @iPos int 
    Set @Delimiter = ISNULL(@Delimiter, ';' ) 
    Set @List = RTrim(LTrim(@List)) 
    -- check for final delimiter 
    If Right( @List, 1 ) <> @Delimiter -- append final delimiter 
    Select @List = @List + @Delimiter -- get position of first element 
    Select @iPos = Charindex( @Delimiter, @List, 1 ) 
    While @iPos > 0 
    Begin 
    -- get item 
    Select @item = LTrim( RTrim( Substring( @List, 1, @iPos -1 ) ) ) 
    If @@ERROR <> 0 Break -- remove item form list 
    Select @List = Substring( @List, @iPos + 1, Len(@List) - @iPos + 1 ) 
    If @@ERROR <> 0 Break -- insert item 
    Insert @Temp1 Values( @item ) If @@ERROR <> 0 Break 
    -- get position pf next item 
    Select @iPos = Charindex( @Delimiter, @List, 1 ) 
    If @@ERROR <> 0 Break 
    End 
    Return 
    End
    FYI: I'm getting @List value from a table and passing it as a string to split function. 
    Any help would be appreciated!
    ZK

    Another user from TSQL forum posted this code which is returning the same resultset but when I execute both codes in SQL server it works and return single quote as expected.
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/8d5c96f5-c498-4f43-b2fb-284b0e83b205/passing-string-which-has-single-quote-rowvalue-to-a-function-returns-double-quoate?forum=transactsql
    CREATE FUNCTION dbo.splitter(@string VARCHAR(MAX), @delim CHAR(1))
    RETURNS @result TABLE (id INT IDENTITY, value VARCHAR(MAX))
    AS
    BEGIN
    WHILE CHARINDEX(@delim,@string) > 0
    BEGIN
    INSERT INTO @result (value) VALUES (LEFT(@string,CHARINDEX(@delim,@string)-1))
    SET @string = RIGHT(@string,LEN(@string)-CHARINDEX(@delim,@string))
    END
    INSERT INTO @result (value) VALUES (@string)
    RETURN
    END
    GO
    ZK

  • Add double quotes (") surrounding each field in GUI_DOWNLOAD

    Experts,
    Does anyone know if it is possible to add double quotes (") to all fields in .txt file using FM GUI_DOWNLOAD besides manually concatenate the quotes into each field before calling the FM?
    For example, output need to be:
    "0000123" "NAME1" "   200.00"
    Any advice is greatly appreciated.
    Best regards,
    Minami

    If you are interested, here is a complete solution.
    report zrich_0001.
    data: it001 type table of t001.
    data: xt001 type t001.
    data: iflatf type table of string.
    data: xflatf type string.
    data: filename type string.
    data: field_value type string.
    field-symbols: <fs>.
    * Selection Screen
    selection-screen begin of block b1 with frame title text-002 .
    parameters: p_file type localfile default
                'C:Test.txt'.
    selection-screen end of block b1.
    start-of-selection.
      select * into table it001 from t001.
      loop at it001 into xt001.
        do.
          assign component sy-index of structure xt001 to <fs>.
          if sy-subrc <> 0.
            exit.
          endif.
          concatenate '"' <fs> '"' into field_value.
          if sy-index = 1.
            xflatf = field_value.
          else.
            concatenate xflatf field_value into xflatf separated by space.
          endif.
        enddo.
          append xflatf to iflatf.
      endloop.
      filename = p_file.
      call method cl_gui_frontend_services=>gui_download
             exporting
                  filename                = filename
                  filetype                = 'ASC'
             changing
                  data_tab                = iflatf.
    Regard,
    Rich Heilman

  • Read CSV file each field is enveloped within double quotes

    Hi All,
    I have a txt file in Apps server which is separated by comma but each values are in double quotes.
    Reason some text fields might have comma as value and not as separator
    Example:-
    "00601100001","","","","","BIJOUTERIE ,SARAH III","","1500"
    How will i read this file.
    thanks in advance.
    SG

    Hi,
    try this code... file contains 3 fields , separtde by comma...
    * report name
    REPORT zupload_csv_file.
    * data declarations
    TYPES: BEGIN OF ttab,
    rec(1000) TYPE c,
    END OF ttab.
    TYPES: BEGIN OF tdat,
    fld1(10) TYPE c,
    fld2(10) TYPE c,
    fld3(10) TYPE c,
    END OF tdat.
    DATA: itab TYPE TABLE OF ttab WITH HEADER LINE.
    DATA: idat TYPE TABLE OF tdat WITH HEADER LINE.
    DATA: file_str TYPE string.
    * selection screen design
    PARAMETERS: p_file TYPE localfile.
    * at selection screen for field
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
    EXPORTING
    static = 'X'
    CHANGING
    file_name = p_file.
    * start of selection
    START-OF-SELECTION.
    file_str = p_file.
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    filename = file_str
    TABLES
    data_tab = itab
    EXCEPTIONS
    file_open_error = 1
    file_read_error = 2
    no_batch = 3
    gui_refuse_filetransfer = 4
    invalid_type = 5
    no_authority = 6
    unknown_error = 7
    bad_data_format = 8
    header_not_allowed = 9
    separator_not_allowed = 10
    header_too_long = 11
    unknown_dp_error = 12
    access_denied = 13
    dp_out_of_memory = 14
    disk_full = 15
    dp_timeout = 16
    OTHERS = 17.
    * process and display output
    LOOP AT itab.
    CLEAR idat.
    SPLIT itab-rec AT ',' INTO idat-fld1
    idat-fld2
    idat-fld3.
    APPEND idat.
    ENDLOOP.
    LOOP AT idat.
    WRITE:/ idat-fld1, idat-fld2, idat-fld3.
    ENDLOOP.
    With Rgds,
    S.bharani

  • Single and double quotes entered in form field cause corruption?

    I am creating a database change request system using in APEX 2.2 and the main form has a description field (clob) and a API_description field (varchar2(4000)) that are text area fields on the page. The form seems to have trouble when the string data entered into the text area page items on the form contain single and double quotes.
    <br><br>
    I have pasted my test data below in this problem description(this is not true sql but it gets the point accross). I use the wizard created insert process to get the data into the db from the text fields in the wizard generated form, then use the wizard created fetch process to get the data back out and rendered on the same form. When I use the test data below, sometimes a few characters dissappear from my input data on the way out, sometime form fields go away, and their html is interspersed with the previous form field's data on the page. And I get different results on different tests with the same data.
    <br><br>
    Do I have to do something special for a vanilla htmldb text page item on a form to be able to receive single and double quotes in the string input in order to avoid that string data confusing the processing on the way in to the Database or on the way out for rendering?
    <br><br>
    Do I have to escape the characters? How do I do this?
    <br><br>
    The "varchar2(1) := ‘A’" part of the below TEST DATA string seem to cause the most trouble. The behavior is erratic - sometimes the pattern works, sometimes html is interspersed in one place, sometimes another (on the way back out)
    <br><br>
    START TEST DATA:
    Add column pcl3_data_ind varchar2(1) to edc_tran,edc_log, edc_recreate_tran table
    Or
    Create a file with following sql in it
    Insert into sometable values(‘A’,sysdate);
    Or
    create new table as follows
    create table “someschema”.“sometable”
    (id number not null,
    Name varchar2(20) not null,
    Join_date sysdate
    Active varchar2(1) := ‘A’
    END TEST DATA:
    <br><br>
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    Here is an example of the test data being displayed after being fetched back out of oracle (this will look like gibberish when rendered in the forum system (end of problem description except for example):
    <br><br>
    env
    Add column pcl3_data_ind varchar2(1) to edc_tran,edc_log, edc_recreate_tran table
    Or
    Create a file with following sql in it
    Insert into sometable values(‘A’,sysdate);
    Or
    crete new tableas follws
    crate table “somesca”.“sometable”
    har2(20) not null,
    Join_date sysdate
    Active varchar2(1) := ‘A’
    woextarea>
    <a class="eLink" title="Edit" href="javascript:popupURL('f?p=4000:371:204538675714370::::P371_ID,FB_FLOW_ID,FB_FLOW_PAGE_ID:1034609472735510,104,2');" tabindex="999"><img src="/i/e.gif" alt="Edit" class="eLink" /></a></td></tr><tr><td nowrap align="right"><label ...

    I found a good php related post that has a nice set of the potentially problematic characters (this is in the context of word pasted into IE I think). I am pretty confident that at least single curly quotes do not work well in apex 2.2). I would not be surprised if some of the others were trouble as well.:
    http://lists.evolt.org/archive/Week-of-Mon-20030602/141975.html
    here is the list
    $trans_tbl[chr(34)] = '"' ;          //      quote
              $trans_tbl[chr(38)] = '&' ;          //      ampersand
              $trans_tbl[chr(60)] = '<' ;          //      less-than
              $trans_tbl[chr(62)] = '>' ;          //      more-than
              $trans_tbl[chr(128)] = '€' ;     //      euro
              $trans_tbl[chr(129)] = '€' ;      //     euro
              $trans_tbl[chr(130)] = '‚' ;      //     low quote
              $trans_tbl[chr(131)] = 'ƒ' ;      //     florin
              $trans_tbl[chr(132)] = '„' ;      //      double low quote
              $trans_tbl[chr(133)] = '…' ;      //     ellipsis
              $trans_tbl[chr(134)] = '†' ;     //     dagger
              $trans_tbl[chr(135)] = '‡' ;      //     double dagger
              $trans_tbl[chr(136)] = 'ˆ' ;      //     circumflex
              $trans_tbl[chr(137)] = '‰' ;      //     per thousand
              $trans_tbl[chr(138)] = 'Š' ;      //     S caron
              $trans_tbl[chr(139)] = '‹' ;      //     left angle quote
              $trans_tbl[chr(140)] = 'Œ' ;      //     OE ligature
              $trans_tbl[chr(142)] = 'Ž' ;      //     Z caron
              $trans_tbl[chr(145)] = '‘' ;      //     left single quote
              $trans_tbl[chr(146)] = '’' ;      //     right single quote
              $trans_tbl[chr(147)] = '“' ;      //     left double quote
              $trans_tbl[chr(148)] = '”' ;      //     right double quote
              $trans_tbl[chr(149)] = '•' ;      //     bullet
              $trans_tbl[chr(150)] = '–' ;      //     en dash
              $trans_tbl[chr(151)] = '—' ;      //     em dash
              $trans_tbl[chr(152)] = '˜' ;      //     small tilde
              $trans_tbl[chr(153)] = '™' ;      //     trademark
              $trans_tbl[chr(154)] = 'š' ;      //     small s caron
              $trans_tbl[chr(155)] = '›' ;      //     right angle quote
              $trans_tbl[chr(156)] = 'œ' ;      //     oe ligature
              $trans_tbl[chr(158)] = 'ž' ;      //      small z caron
              $trans_tbl[chr(159)] = 'Ÿ' ;      //     Y with diaeresis
    <br>
    -Geoffrey

Maybe you are looking for