Who used the name officially between 1804 and 1813 ?
The country was usually called Annam until 1945 , when both the imperial government in Huế and the Viet Minh government in Hanoi adopted " Việt Nam " .