Hebrew chars are gibbrish in a cookie that was created by firefox.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Yair m
    New Member
    • Sep 2011
    • 7

    Hebrew chars are gibbrish in a cookie that was created by firefox.

    Hi,

    I'm trying to save hebrew chars into a cookie , but the result is gibbrish chars.

    It happen only for firefox. when I'm working with internet explorer it works fine.

    I'm working with javascript.

    Thanks,
    Yair
  • johny10151981
    Top Contributor
    • Jan 2010
    • 1059

    #2
    Its really interesting, would you please tell me, why exactly are you trying to store text on cookie?

    Comment

    • Yair m
      New Member
      • Sep 2011
      • 7

      #3
      Originally posted by johny10151981
      Its really interesting, would you please tell me, why exactly are you trying to store text on cookie?
      I'm want to develop a presonal portfolio were each record holds the user comment. for unsigned user i want to keep this portfolio in a cookie. the comment is a text no longer then 50 chars.

      Comment

      • johny10151981
        Top Contributor
        • Jan 2010
        • 1059

        #4
        Not a very good idea, how about keeping them in session?

        Comment

        • Yair m
          New Member
          • Sep 2011
          • 7

          #5
          Hi,

          I will think about it. The purpose of saving them in the cient side is
          1. to reduce the amount of server requests.
          2. to keep the comments alive for few days.

          Thanks,
          Yair.

          Comment

          • johny10151981
            Top Contributor
            • Jan 2010
            • 1059

            #6
            in that case it will be only on that individual client, not all client

            Comment

            • acoder
              Recognized Expert MVP
              • Nov 2006
              • 16032

              #7
              What character encoding are you using? Set it to one that you know will display the characters correctly.

              Comment

              Working...