vi command -output garbage char in HP-UX

Hi all ,

   I am new to HP-UX flavour of unix.
   i am issuing simple  "vi"  comand on the command prompt  it is showing me some garbage character in command prompt itself ..unreadable format.
    I tried opening an existing file using the vi editor --and same thing
   happened -saw some garbage character.

   Finally i try with   man  vi     in the command prompt and the out put was again horrible.

   Can any body help me the possible cause. i check the .profile but seems path were ok.

    HERE IS A SIMPLE OUT PUT FROM VI COMMAND IN THE COMMAND PROMOPT \---

   $vi
   29yoC1AOC~6476C768

Can't be sure on this but check your $TERM environment variable is not set to some odd value.
For vi vt100 usually is a good bet if rather long in the tooth now.

Great !

 I checked with the TERM value and it was differnt then you are mention .
 i set it to vt100  and  vi get worked.
 but still  i can see two garbage line when i first time login to my machine.
 can i set some thing in my .profile to avoid the garbage two line that is coming when
 i login.

thanks AJcannon for assist me .

can you tell us what you are getting when you log in......