• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Do Jmeter support utf charaters

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have a list of 19000 utf characters and i am trying to read that file through my script using JMeter for automation testing but i am not able to do that .Is there any known bug related to this or is there any way out .

looking forward for your replies
Regards
varun
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What does "i am not able to do that" mean? What exactly are you doing, and what is happening? Are there any error messages? TellTheDetails
 
cheenu goyal
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ali right there are no error messages . I have an application which is messaging based and i want to automatically message to other user and content of message is read from file which contains utf characters , now the message is posted succesfully sometimes but most of times it shows null message or at times it shows ?? or rectangle instead of the original character .
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Where does it show questions marks or rectangles? Many Unicode characters require special fonts installed; if those are missing, those two outcomes are the most frequent ones.
 
cheenu goyal
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
it shows rectangles or ?? in my message posting area after successfull posting. you can imagine our application like orkut where we scrap public profiles , here i am trying to automate it from reading file instead of manually doing it as there are infinite utf chracters
 
cheenu goyal
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Let me try to explain you the logic of my jmeter script.
1) I have an excel sheet (unicode.xls) which has 19,000 unicode characters, i have converted this sheet into a unicode.txt (unicode txt format).
2) My script has a config element (CSV Data Set Config) which reads unicode.txt file.
3) I have used a HTTP Post request with content encoding as (UTF-8) as a child of Loop Controller, with the reference of parameter of unicode.txt file.
Problem encountered: The HTTP Post request is not able to read the unicode characters from the unicdoe.txt file. It is converting the characters as a garbage value.
I am not sure if Jmeter HTTP Post request supports unicode characters. Can you please help where i am stuck or there is some other paramter which i have to use while reading these unicode from a txt file. Looking forward to hear from you.

Best Regards
Varun Goyal
Delhi
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are all kinds of things that could be going wrong here that have little or nothing to do with JMeter.

First I'd check that the file actually is properly UTF-8 encoded. Make sure you specify that encoding when opening the file - UTF-8 is not the platform default encoding on any operating system I know of.

HTTP has no problems using any encoding you can think of. Make sure the server process handles it properly (and specifies the correct encoding when generating the response).
 
grapes are vegan food pellets. Eat this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic