how to read japanese characters (multilingual characters) from a text file and save them in Access database ???

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default how to read japanese characters (multilingual characters) from a text file and save them in Access database ???

    HI All

    i m trying to read a text file, having some japanese characters and saved as
    UTF-8 encoding.

    I m using ASP,FSO ... my code is below, plz make the required changes and
    expalin :)

    Dim ObjFso,thetextdata
    Set ObjFso = Server.CreateObject("Scripting.FileSystemObject")
    Set thetextdata = ObjFso.OpenTextFile("C:\Examples\test1.txt",1)
    data = thetextdata.ReadAll
    Set thetextdata = Nothing
    Set ObjFso = Nothing

    rs.open "test",con,1,3
    rs.addnew
    rs("adminname") = "testadmin"
    rs("propname") = "test"
    rs("propvalue") = data
    rs.update
    rs.close

    response.write "Done"

    after this only "?" question marks are stored in DB
    PLz Help


    asim Guest

  2. Similar Questions and Discussions

    1. Problem displaying Japanese characters
      Hi, I want my application to have "Lucida Grande" font. Since I am not sure that every platform has it locally installed, I embedded it. I...
    2. Japanese characters.
      Hi, In Acrobat SDK 6.0 we are using wordproc to fetch the word from pdf document. We are creating links for that word also. I want to extract word...
    3. Japanese characters
      I am puting into a SQL server DB that is set to VarChar and i am using CF 6.1. I want to do this in Japanese however all I am getting is "????"...
    4. Japanese Characters?
      How do I incorporate Japanese characters into a German version of Flash MX? Is Japanese text right-to-left? Top-to-bottom? Any clues would be...
    5. Viewing PSD's with Japanese characters
      I received a disk from Japan with that has PSD's saved. However, I cannot open them. The error message reads "File could not be found", even though...
  3. #2

    Default Re: how to read japanese characters (multilingual characters) from a text file and save them in Access database ???

    Can you try something like:

    Set thetextdata =ObjFso.OpenTextFile("C:\Examples\test1.txt",1, , -1)

    The last "-1" value opens the file in unicode format.

    --
    Manohar Kamath
    Editor, .netBooks
    [url]www.dotnetbooks.com[/url]


    "asim" <qazi@advcomm.net> wrote in message
    news:uofb%23xJYDHA.2032@TK2MSFTNGP10.phx.gbl...
    > HI All
    >
    > i m trying to read a text file, having some japanese characters and saved
    as
    > UTF-8 encoding.
    >
    > I m using ASP,FSO ... my code is below, plz make the required changes and
    > expalin :)
    >
    > Dim ObjFso,thetextdata
    > Set ObjFso = Server.CreateObject("Scripting.FileSystemObject")
    > Set thetextdata = ObjFso.OpenTextFile("C:\Examples\test1.txt",1)
    > data = thetextdata.ReadAll
    > Set thetextdata = Nothing
    > Set ObjFso = Nothing
    >
    > rs.open "test",con,1,3
    > rs.addnew
    > rs("adminname") = "testadmin"
    > rs("propname") = "test"
    > rs("propvalue") = data
    > rs.update
    > rs.close
    >
    > response.write "Done"
    >
    > after this only "?" question marks are stored in DB
    > PLz Help
    >
    >

    Manohar Kamath [MVP] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139