A total of 77,508 responded to a Scottish Government consultation on the issue of gay marriage.
The results from people in Scotland, who issued a standard response to the consultation, show that 65% support same-sex marriage and 35% oppose it. When postcards and other petitions are added to the mix, the proportions are almost exactly reversed: 36% are in favour and 64% are against.
While more than 62,000 responses were from Scotland, 14,779 were sent in by people living elsewhere.
Standard consultation responses from Scotland and the other countries show a virtual split down the middle, with 49% in favour and 50% against. When postcards and other petitions are included, the support falls to 32% and the opposition rises to 67%.
More top news
The cousin-in-law of Mexican footballer Alan Pulido - kidnapped and rescued over the weekend - is suspected of playing a role.
Thousands of US-backed troops in Syria are launching an attack to capture a crucial swathe of northern Syria from Islamic State.
A father who forced his pregnant 14-year-old daughter to marry a 24-year-old family friend who raped her has been jailed.